refactor: statically guarantee that current error codes are documented
This commit is contained in:
parent
70fd012439
commit
90677edcba
8 changed files with 33 additions and 67 deletions
|
@ -580,7 +580,7 @@ impl DiagnosticCode {
|
|||
let je_result =
|
||||
je.registry.as_ref().map(|registry| registry.try_find_description(&s)).unwrap();
|
||||
|
||||
DiagnosticCode { code: s, explanation: je_result.unwrap_or(None) }
|
||||
DiagnosticCode { code: s, explanation: je_result.ok() }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue