]> thyrsus.com Git - ssh-installkeys.git/commitdiff
More informative error message.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 1 Apr 2012 13:55:44 +0000 (09:55 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 1 Apr 2012 13:55:44 +0000 (09:55 -0400)
ssh-installkeys

index 41bf752a4d3f1911473d1e70bc6aba76743a1c93..524fb7a95345b3d0fe72abf0906cf62f17a0c3f1 100755 (executable)
@@ -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)