Skip to main content

Exit codes

whzbox maps command errors to process exit codes.

Standard exit codes

CodeMeaning
0Success
1Generic error
2Authentication error
3Provider error
4User aborted an interactive prompt
5No interactive terminal available for a required prompt

exec child exit codes

whzbox exec is special:

  • if the child process exits non-zero, whzbox returns the same exit code
  • whzbox does not print its own Error: line for that case

Example:

whzbox exec aws -- false
echo $?

The shell prints:

1

Error mapping

ConditionExit code
invalid credentials2
session expired and not recoverable2
sandbox provider or verification failure3
no active sandbox upstream for destroy3
user aborts prompt4
prompt needed but no TTY is attached5

See also