Message ID | 5e86c8256e44eb5516631fc455c6c4d1de271eb1.1690632156.git.attila@lendvai.name |
---|---|
State | New |
Headers | show |
Series | [bug#64930] guix: Also print the user when SSH auth fails. | expand |
Hi, On Sat, 29 Jul 2023 at 14:02, Attila Lendvai <attila.lendvai@gmail.com> wrote: > - (message (format #f (G_ "SSH authentication failed for '~a': ~a~%") > - host (get-error session))))))))))) > + (message (format #f (G_ "SSH authentication failed for '~a@~a': ~a~%") > + user host (get-error session))))))))))) This LGTM. Is it possible that ’user’ is not set? Cheers, simon
Hi, Simon Tournier <zimon.toutoune@gmail.com> skribis: > On Sat, 29 Jul 2023 at 14:02, Attila Lendvai <attila.lendvai@gmail.com> wrote: > >> - (message (format #f (G_ "SSH authentication failed for '~a': ~a~%") >> - host (get-error session))))))))))) >> + (message (format #f (G_ "SSH authentication failed for '~a@~a': ~a~%") >> + user host (get-error session))))))))))) > > This LGTM. Is it possible that ’user’ is not set? Right, USER can be #f. I fixed this and applied it. Thanks Attila & Simon! Ludo’.
diff --git a/guix/ssh.scm b/guix/ssh.scm index b7b9807ebf..91d61fc3c0 100644 --- a/guix/ssh.scm +++ b/guix/ssh.scm @@ -175,8 +175,8 @@ (define* (open-ssh-session host #:key user port identity (disconnect! session) (raise (condition (&message - (message (format #f (G_ "SSH authentication failed for '~a': ~a~%") - host (get-error session))))))))))) + (message (format #f (G_ "SSH authentication failed for '~a@~a': ~a~%") + user host (get-error session))))))))))) (x ;; Connection failed or timeout expired. (raise (formatted-message (G_ "SSH connection to '~a' failed: ~a~%")