Skip to main content

conversion_status_line

Function conversion_status_line 

Source
pub fn conversion_status_line(code: usize) -> String
Expand description

Build a status message matching Perl’s getStatusMessage(). Format: “N warnings; M errors; K fatal error; L undefined macros[\foo, \bar]; P missing files[x.sty]” Returns “No obvious problems” when no issues detected. The canonical machine-readable conversion-status line, Status:conversion:N.

The contract every multi-phase executable ends its log with: the cortex framework derives a task’s final severity from the LAST such line in the log (and defaults to Fatal when it is absent), so code must be the combined max(core, post) verdict. Shared here so the CLI, the worker and the archive status member can never drift in format.