Show error message if pattern wasn't found

This commit is contained in:
a2x
2024-05-08 13:45:58 +10:00
parent 80724bf971
commit bf2ebb716f
4 changed files with 6 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ impl CodeWriter for OffsetMap {
}
fn write_json(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
fmt.write_str(&serde_json::to_string_pretty(self).expect("failed to serialize"))
fmt.write_str(&serde_json::to_string_pretty(self).expect("unable to serialize json"))
}
fn write_rs(&self, fmt: &mut Formatter<'_>) -> fmt::Result {