2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-26 22:31:10 +00:00

Parsing : fix for sendmsg() error message (#2983)

This commit is contained in:
Mark Gurevich
2017-05-04 21:30:52 -04:00
committed by yangsong
parent 3b65df9089
commit f3531240d3

View File

@@ -1566,6 +1566,7 @@ sub sendmsg {
$rc = $text->[0];
$text = $text->[1];
}
my $text_origin = $text; # Save original text string
if ($text =~ /:/) {
($descr, $text) = split /:/, $text, 2;
}
@@ -1582,7 +1583,7 @@ sub sendmsg {
}
if ($rc) {
$curptr->{errorcode} = [$rc];
$curptr->{error} = [$text];
$curptr->{error} = [$text_origin];
$curptr = $curptr->{error}->[0];
if (defined $node && %allerrornodes) {
$allerrornodes{$node} = 1;