Skip to main content

print_error_envelope

Function print_error_envelope 

Source
pub fn print_error_envelope(
    exit_code: i32,
    error_code: &str,
    message: &str,
    remote_exit_code: Option<i32>,
    error_class: ErrorClass,
    retryable: bool,
    suggestion: Option<&str>,
) -> Result<()>
Expand description

Emits a JSON error envelope on stderr (GAP-SSH-IO-003 / G-RETRY / G-ERR-08).