mirror of
https://github.com/restic/restic.git
synced 2026-11-19 04:05:21 +00:00
Handle invalid key file
This commit is contained in:
1 parent
6f8eba9c28
commit
36e70228f2
2 files changed
+7
-4
No files matched your search
@@ -319,7 +319,7 @@ func OpenRepository(opts GlobalOptions) (*repository.Repository, error) {
|
||||
|
||||
err = s.SearchKey(context.TODO(), opts.password, maxKeys)
|
||||
if err != nil {
|
||||
return nil, errors.Fatalf("unable to open repo: %v", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return s, nil
|
||||
|
||||
Reference in new issue
Block a user