Skip to main content

message_object

Function message_object 

Source
pub fn message_object<'a>(object: &'a str, fallback: &'a str) -> &'a str
Expand description

A diagnostic’s what field as the log line carries it: without leading blanks, and fallback when that leaves nothing. A field of spaces (an \@latex@error prefix whose indent expanded, 2606.13031) leaves Error:latex: followed by blanks, which a log reader keyed on Error:<category>:<what> misses; Perl prints it as it is. Trailing blanks stay, as Perl’s (mycls) Class mycls Warning (OXIDIZED_DESIGN #1175).