-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:
jbjohnso 2008-05-22 16:58:35 +00:00
parent 0863a2b674
commit 7f9604ba91

View File

@ -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))
{