From 9a64ca9b843aa32a036e9b895384035faede401c Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 17 Sep 2013 12:19:52 -0400 Subject: [PATCH] fix defect 3786 --- perl-xCAT/xCAT/Client.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/perl-xCAT/xCAT/Client.pm b/perl-xCAT/xCAT/Client.pm index 80d9340a9..99b84e489 100644 --- a/perl-xCAT/xCAT/Client.pm +++ b/perl-xCAT/xCAT/Client.pm @@ -231,6 +231,16 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML Timeout => 0, ); } + unless ($client) { + print "Unable to open socket connection to xcatd daemon on $xcathost.\n"; + print "Verify that the xcatd daemon is running and that your SSL setup is correct.\n"; + if ($@ =~ /SSL Timeout/) { + die "Connection failure: SSL Timeout or incorrect certificates in ~/.xcat"; + } else { + die "Connection failure: $@" + } + } + my $msg; if (ref($request) eq 'HASH') { # the request is an array, not pure XML $msg=XMLout($request,RootName=>'xcatrequest',NoAttr=>1,KeyAttr=>[]);