forked from TrueCloudLab/restic
Merge pull request #2778 from MichaelEischer/fix-unlock-hint
Revive hint to the unlock command if a repository is locked
This commit is contained in:
commit
ac9ec4b990
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ func lockRepository(repo *repository.Repository, exclusive bool) (*restic.Lock,
|
|||
|
||||
lock, err := lockFn(context.TODO(), repo)
|
||||
if err != nil {
|
||||
return nil, errors.Fatalf("unable to create lock in backend: %v", err)
|
||||
return nil, errors.WithMessage(err, "unable to create lock in backend")
|
||||
}
|
||||
debug.Log("create lock %p (exclusive %v)", lock, exclusive)
|
||||
|
||||
|
|
Loading…
Reference in a new issue