Add error processing.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9266 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-04-11 02:42:35 +00:00
parent b043ab7205
commit 084464ecad

View File

@ -166,6 +166,9 @@ sub getans {
my $rsp = shift;
if ($rsp->{node}) {
$hcps = $rsp->{node}->[0]->{hcp};
if ( $rsp->{node}->[0]->{errorcode} ) {
print STDERR "$rsp->{node}->[0]->{error}";
}
}
}
my $cmdref={