pub fn parse_errors_log(content: &str) -> Vec<ProfileErrorRecord>Expand description
Parse the textual content of an errors log. Format:
# dodot shell-init errors v1
@@\t<target>\t<exit_status>
<stderr line 1>
<stderr line 2>
@@\t<target>\t<exit_status>
<stderr line 1>Lines starting with # are headers (ignored). A line beginning with
@@\t opens a new record; subsequent lines until the next @@\t
(or EOF) are the captured stderr. Records with malformed headers are
skipped. The trailing newline written after each record by the
shell wrapper appears as a blank line; we strip exactly one trailing
newline from each record’s message to keep round-tripping clean.