Skip to main content

exit_code

Function exit_code 

Source
pub fn exit_code() -> Option<i32>
Expand description

process.exitCode as the program left it, or None if it was never set.

The binary reads this after a run completes to pick its own status — Node exits with process.exitCode when the loop drains normally, so a script that signals failure that way (rather than by throwing or calling process.exit) is reported as a failure rather than as success.