Skip to main content

summarize_stderr

Function summarize_stderr 

Source
pub fn summarize_stderr(stderr: &[u8]) -> Option<String>
Expand description

Turns a child’s captured stderr into a one-line message fit for the status bar.

Git repeats error: cannot run gpg: No such file or directory once per signed commit; the user only needs to see it once, with its error: prefix stripped. Returns None when stderr was empty or whitespace.