diff --git a/pkg/cmd/auth/shared/login_flow.go b/pkg/cmd/auth/shared/login_flow.go index 373cc299d..10a371872 100644 --- a/pkg/cmd/auth/shared/login_flow.go +++ b/pkg/cmd/auth/shared/login_flow.go @@ -99,7 +99,9 @@ func Login(opts *LoginOptions) error { if sshChoice { passphrase, err := opts.Prompter.Password( "Enter a passphrase for your new SSH key (Optional)") - + if err != nil { + return err + } keyPair, err := opts.sshContext.GenerateSSHKey("id_ed25519", passphrase) if err != nil { return err