From 3a93ec2669da951dfcb3bbab0249728ce5c929c4 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 8 Aug 2008 17:06:08 +0000 Subject: [PATCH] -Provide more verbose feedback on dispatch failures. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1998 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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";