Skip to main content

build_cli_error

Function build_cli_error 

Source
pub fn build_cli_error(message: &str, hint: Option<&str>) -> Event
Expand description

Build a CLI error event with optional hint.

Always returns a strict-valid kind:"error" event with code "cli_error", retryable: false, and an empty trace. An empty message is replaced with a generic placeholder so the returned event stays strict-valid without panicking.