2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-18 08:42:22 +00:00
restic/cmd
Michael Eischer 087c770161 Revive hint to the unlock command if a repository is locked
errors.Fatalf wraps a error and just keeps an error message as a string.
This prevents the `restic.IsAlreadyLocked(err)` check from working as
the error is no longer an ErrAlreadyLocked.

Just add an additional remark to the error using `errors.WithMessage`.
2020-06-10 20:58:56 +02:00
..
restic Revive hint to the unlock command if a repository is locked 2020-06-10 20:58:56 +02:00