mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-10-07 22:50:03 +08:00
Show error message if pattern wasn't found
This commit is contained in:
@@ -76,7 +76,7 @@ impl CodeWriter for InterfaceMap {
|
||||
})
|
||||
.collect();
|
||||
|
||||
fmt.write_str(&serde_json::to_string_pretty(&content).expect("failed to serialize"))
|
||||
fmt.write_str(&serde_json::to_string_pretty(&content).expect("unable to serialize json"))
|
||||
}
|
||||
|
||||
fn write_rs(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
|
||||
|
@@ -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 {
|
||||
|
@@ -259,7 +259,7 @@ impl CodeWriter for SchemaMap {
|
||||
})
|
||||
.collect();
|
||||
|
||||
fmt.write_str(&serde_json::to_string_pretty(&content).expect("failed to serialize"))
|
||||
fmt.write_str(&serde_json::to_string_pretty(&content).expect("unable to serialize json"))
|
||||
}
|
||||
|
||||
fn write_rs(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
|
||||
|
Reference in New Issue
Block a user