Skip to content

Commit 1ff6fef

Browse files
committed
Explain exit code 0 as a cancel, not an unknown error
1 parent 35fcc23 commit 1ff6fef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎api/exitcodes.func‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ explain_exit_code() {
3535
local code="$1"
3636
case "$code" in
3737
# --- Generic / Shell ---
38+
# Reached through the aborted branch of post_update_to_api: a clean exit that
39+
# never reported success is someone backing out of a dialog. Every one of
40+
# those records read "Unknown error".
41+
0) echo "Cancelled before completion (no error)" ;;
3842
1) echo "General error / Operation not permitted" ;;
3943
2) echo "Misuse of shell builtins (e.g. syntax error)" ;;
4044
3) echo "General syntax or argument error" ;;

0 commit comments

Comments
 (0)