From: Eric S. Raymond Date: Sun, 1 Apr 2012 13:55:44 +0000 (-0400) Subject: More informative error message. X-Git-Tag: 1.8~4 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=7826b9569fa2bf5985e4378ab6ec4c0d976fb4df;p=ssh-installkeys.git More informative error message. --- diff --git a/ssh-installkeys b/ssh-installkeys index 41bf752..524fb7a 100755 --- a/ssh-installkeys +++ b/ssh-installkeys @@ -2111,7 +2111,7 @@ if __name__ == '__main__': # OK, install keys remotely if they don't exist if session.exists("~/.ssh/authorized_keys"): - print "authorized_keys already exists on", host + print "authorized_keys already exists on %s, cannot append to it." % host config.remember(session) elif check: print "Check of %s@%s is complete." % (login, host)