Skip to main content

format_exit_message

Function format_exit_message 

Source
pub fn format_exit_message(
    code: Option<i32>,
    signal: Option<&str>,
    stderr: &str,
    from: &str,
    details: &str,
) -> String
Expand description

Format the message of a command that exited unsuccessfully.

code == Some(0) without a signal yields just exit code: 0.