Fix issue where error/warning output doesn't go to stderr

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@985 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-04-07 13:09:39 +00:00
parent b754e3eced
commit 4da82b680f

View File

@ -509,12 +509,12 @@ sub handle_response {
}
if ($rsp->{error}) {
#print "printing error\n";
if (ref($rsp->{error}) eq 'ARRAY') { foreach my $text (@{$rsp->{error}}) { print "Error: $text\n"; } }
if (ref($rsp->{error}) eq 'ARRAY') { foreach my $text (@{$rsp->{error}}) { print STDERR "Error: $text\n"; } }
else { print ("Error: ".$rsp->{error}."\n"); }
}
if ($rsp->{warning}) {
#print "printing warning\n";
if (ref($rsp->{warning}) eq 'ARRAY') { foreach my $text (@{$rsp->{warning}}) { print "Warning: $text\n"; } }
if (ref($rsp->{warning}) eq 'ARRAY') { foreach my $text (@{$rsp->{warning}}) { print STDERR "Warning: $text\n"; } }
else { print ("Warning: ".$rsp->{warning}."\n"); }
}
if ($rsp->{info}) {