mirror of
https://github.com/restic/restic.git
synced 2026-07-17 12:44:54 +00:00
use errors.Fatalf instead of custom formatting
This commit is contained in:
@@ -171,7 +171,7 @@ func (opts *GlobalOptions) PreRun(needsPassword bool) error {
|
||||
}
|
||||
pwd, err := resolvePassword(opts, "RESTIC_PASSWORD")
|
||||
if err != nil {
|
||||
return errors.Fatal(fmt.Sprintf("Resolving password failed: %v\n", err))
|
||||
return errors.Fatalf("Resolving password failed: %v", err)
|
||||
}
|
||||
opts.password = pwd
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user