fn journal_read_error_diagnosis(
journal_path: &Path,
error: JournalReadError,
) -> (DiagnosisResult, Option<&Path>)Expand description
Convert a database::JournalReadError into a structured diagnosis result.
Maps all journal reading error variants to appropriate diagnosis codes and severity levels. Returns the diagnosis along with an optional path reference for recovery findings.
ยงError Mapping
Incomplete-> error, no path referenceRead-> error, no path referenceMalformedLine-> error with line number, no path referenceTrailingEntries-> error with line number, with path reference