From 36cc62075cbf5f44e06f531ebb598e3710e1be60 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 30 Jun 2024 19:25:48 +0200 Subject: [PATCH] add exit code changelog --- changelog/unreleased/pull-4884 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 changelog/unreleased/pull-4884 diff --git a/changelog/unreleased/pull-4884 b/changelog/unreleased/pull-4884 new file mode 100644 index 000000000..ff2bff967 --- /dev/null +++ b/changelog/unreleased/pull-4884 @@ -0,0 +1,11 @@ +Change: return exit code 10 or 11 if repository does not exist or is locked + +If a repository does not exist or cannot be locked, then restic always returned +exit code 1. This made it difficult to distinguish these cases from other +errors. + +Now, restic returns exit code 10 if the repository does not exist and exit code +11 if the repository could be not locked due to a conflicting lock. + +https://github.com/restic/restic/issues/956 +https://github.com/restic/restic/pull/4884