Handle invalid key file

This commit is contained in:
Alexander Neumann
2017-09-10 10:55:01 +02:00
parent 6f8eba9c28
commit 36e70228f2
2 changed files with 7 additions and 4 deletions

View File

@@ -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