From a07ee820263adf2ded67216fa23e84bd70b6faf2 Mon Sep 17 00:00:00 2001 From: yangsbj Date: Fri, 10 Aug 2018 05:57:09 -0400 Subject: [PATCH] nodediscover.pm: print error message when failed to open socket to 3001 port of the node under discovery --- xCAT-server/lib/xcat/plugins/nodediscover.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/nodediscover.pm b/xCAT-server/lib/xcat/plugins/nodediscover.pm index a05a1f598..9c6e86314 100644 --- a/xCAT-server/lib/xcat/plugins/nodediscover.pm +++ b/xCAT-server/lib/xcat/plugins/nodediscover.pm @@ -510,7 +510,7 @@ sub process_request { Timeout => '1', Proto => 'tcp' ); - unless ($sock) { xCAT::MsgUtils->message("S", "xcat.discovery.nodediscover: Failed to notify $clientip that it's actually $node. $node has not been discovered."); return; } + unless ($sock) { xCAT::MsgUtils->message("S", "xcat.discovery.nodediscover: Failed to notify $clientip that it's actually $node. $node has not been discovered: $!"); return; } print $sock $restartstring; close($sock);