Skip to main content

error_envelope

Function error_envelope 

Source
pub fn error_envelope<'a>(
    err: &AppError,
    command: &'a str,
    duration_ms: u64,
) -> ErrorEnvelope<'a>
Expand description

Build an error envelope. SIGINT/SIGTERM surface as kind canceled with exit 130/143.

command is the wire name of the attempted command (usage when clap fails before dispatch). duration_ms is wall time since process start for that attempt (may be 0 for early parse failures).