From b3b99f494ae54124c1bce23ae180efdaeb5aaf70 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 14 Nov 2012 18:40:40 +0100 Subject: [PATCH] Show friendlier error message when authentication fails --- console/master/dropper | 3 +++ 1 file changed, 3 insertions(+) diff --git a/console/master/dropper b/console/master/dropper index 737f3d6..851b062 100755 --- a/console/master/dropper +++ b/console/master/dropper @@ -79,6 +79,9 @@ def show_list(): except KeyError, ValueError: print "That was not a valid option. Try again. " show_list() + except paramiko.AuthenticationException: + print "Could not connect to the node." + exit(1) print "#############################################################" print "### CVM OpenVZ shell dropper ###"