diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 759fc7103..d79b91f20 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -914,8 +914,9 @@ sub dispatch_request { xCAT::Client::submit_request($_,\&dispatch_callback,$xcatdir."/cert/server-cred.pem",$xcatdir."/cert/server-cred.pem",$xcatdir."/cert/ca.pem"); }; if ($@) { - dispatch_callback({error=>["Unable to dispatch command to ".$ENV{XCATHOST}.", command will not make changes to that server"],errorcode=>[1]}); - syslog("local4|err","Error dispatching request: ".$@); + my $errstr=$@; + dispatch_callback({error=>["Unable to dispatch command to ".$ENV{XCATHOST}.", command will not make changes to that server ($errstr)"],errorcode=>[1]}); + syslog("local4|err","Error dispatching request: ".$errstr); } } else { $$progname.=": locally executing";