mirror of
https://github.com/restic/restic.git
synced 2026-06-24 17:44:17 +00:00
Print password error message on stderr
The password prompt itself is already printed on stderr.
This commit is contained in:
@@ -455,7 +455,7 @@ func OpenRepository(opts GlobalOptions) (*repository.Repository, error) {
|
||||
err = s.SearchKey(opts.ctx, opts.password, maxKeys, opts.KeyHint)
|
||||
if err != nil && passwordTriesLeft > 1 {
|
||||
opts.password = ""
|
||||
fmt.Printf("%s. Try again\n", err)
|
||||
fmt.Fprintf(os.Stderr, "%s. Try again\n", err)
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user