Browse Source

backup: fix borg exit code handling for ret=0

master
Jim Paris 1 year ago
parent
commit
2b81094a32
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backup.py

+ 1
- 1
backup.py View File

@@ -379,7 +379,7 @@ def main(argv: list[str]):
backup.log('E', f"borg exited with errors (ret={ret})")
elif ret == 1 and borg_saw_warnings:
backup.log('W', f"borg exited with warnings (ret={ret})")
else:
elif ret != 0:
backup.log('E', f"borg exited with unknown error code {ret}")

# See if we had any errors


Loading…
Cancel
Save