Skip to content

Modern exit codes - which returned if multiple warnings/errors? #9934

Description

@WilliamDEdwards

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions