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:
MichaelEischer
2020-06-10 21:26:38 +02:00
committed by GitHub

View File

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