aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/borg.sh.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/borg.sh.erb b/templates/borg.sh.erb
index 652bfa0..736ad4f 100644
--- a/templates/borg.sh.erb
+++ b/templates/borg.sh.erb
@@ -107,4 +107,6 @@ if [ ${global_exit} -gt 1 ]; then
info "Backup and/or Prune finished with an error"
fi
-exit ${global_exit}
+if [ "${global_exit}" != "0" ]; then
+ fatal "Error completing borg action: exit code ${global_exit}"
+fi