journal_error

Function journal_error 

Source
fn journal_error(
    journal_path: &Path,
    error_code: &str,
    message: impl Display,
    severity: DiagnosisSeverity,
) -> DiagnosisResult
Expand description

Create a journal-specific diagnosis with automatic path prefixing.

Formats the description as {path}: {message} for consistent error messages.

§Example

let diag = journal_error(
    &path,
    "incomplete_journal",
    "incomplete recovery journal",
    DiagnosisSeverity::Error,
);