diff --git a/xCAT-server/lib/xcat/plugins/snmove.pm b/xCAT-server/lib/xcat/plugins/snmove.pm index e12a32fc4..475ac203b 100644 --- a/xCAT-server/lib/xcat/plugins/snmove.pm +++ b/xCAT-server/lib/xcat/plugins/snmove.pm @@ -1030,14 +1030,15 @@ sub process_request }, $sub_req, 0, 1 ); - my $rsp; - $rsp->{data}=$ret; - xCAT::MsgUtils->message("I", $rsp, $callback); - if ($::RUNCMD_RC != 0) - { - $error++; - } - } + + if ($::RUNCMD_RC != 0) + { + my $rsp; + push @{$rsp->{data}}, "Could not run the nodeset command.\n"; + xCAT::MsgUtils->message("E", $rsp, $callback); + $error++; + } + } } } # end - for Linux system only