-Exit more cleanly if DB encounters an issue
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1482 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0863a2b674
commit
7f9604ba91
@ -708,6 +708,9 @@ sub setAttribs
|
||||
}
|
||||
$cmd =~ s/ AND \z//;
|
||||
my $sth = $self->{dbh}->prepare($cmd);
|
||||
unless ($sth) {
|
||||
return (undef,"Error attempting requested DB operation");
|
||||
}
|
||||
my $err = $sth->execute(@bind);
|
||||
if (not defined($err))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user