core:archive exits with 1 when only warnings occur #18596
Labels
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
Milestone
Warnings during runs of
core:archive
will always cause it to exit with an exit code of 1, even if the task didn't encounter any errors:This behavior is not helpful and IMO unexpected. *nix programs usually only return a non-zero return code when the operation requested by the user failed entirely.
core:archive
's current behavior makes it unreasonably complicated to decide whether it failed or not; a script that reports errors to an administrator by mail would have to parsecore:archive
's output to make that decision.It would be very helpful if this behavior was either removed entirely, or if it could be disabled with a flag.
The text was updated successfully, but these errors were encountered: