Skip to main content

load_reporting

Function load_reporting 

Source
pub fn load_reporting(root: &Path) -> Result<(Vec<Job>, Vec<String>)>
Expand description

Read <root>/cron/jobs.toml and say which blocks are unusable.

#405: one malformed block used to be an Err for the whole file, so a typo in a job nobody was looking at stopped every other job, and a failed systemd unit was the only trace. The docs invite hand-editing, so a bad block is skipped and named instead. The file still has to parse: a TOML syntax error is the file’s shape, not one job’s, and the parse error already names a line number.