When using modern exit codes (BORG_EXIT_CODES=modern), borg create returns exit codes corresponding to a (meaningful) message ID.
I would like to use these to ignore FileChangedWarning, but I'm wondering: what code is returned when multiple warnings/errors are reported? Say a command returns a FileChangedWarning and a BorgWarning, is the highest-severity ('worst') one returned, the first, or something else?
I looked in https://github.com/borgbackup/borg/blob/master/src/borg/archiver/create_cmd.py, but that code is a bit too abstracted for me to understand.
When using modern exit codes (
BORG_EXIT_CODES=modern),borg createreturns exit codes corresponding to a (meaningful) message ID.I would like to use these to ignore
FileChangedWarning, but I'm wondering: what code is returned when multiple warnings/errors are reported? Say a command returns aFileChangedWarningand aBorgWarning, is the highest-severity ('worst') one returned, the first, or something else?I looked in https://github.com/borgbackup/borg/blob/master/src/borg/archiver/create_cmd.py, but that code is a bit too abstracted for me to understand.