Skip to main content

truncate_status_message

Function truncate_status_message 

Source
pub fn truncate_status_message(message: &str) -> String
Expand description

Truncate a human message for gRPC Status / trailers (HEADERS).

Prefer the tail: Nix/process failures print progress first and the real error last. Keeping the head (derivation lists) hides the failure.