diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-08 19:47:17 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-08 19:47:17 +0800 |
| commit | dfbc80098c2b46adb14a571947fb7ac8f0169224 (patch) | |
| tree | 117051fb612b0fd720f7973f84d8d6823e25e3cb /tools/tscn-to-bsn/src/err/json.rs | |
| parent | 674879d7676f8a76d728c1fa4c739f9bbbe98b27 (diff) | |
feat(build-cache): write uid map to JSON cache file
Diffstat (limited to 'tools/tscn-to-bsn/src/err/json.rs')
| -rw-r--r-- | tools/tscn-to-bsn/src/err/json.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/tscn-to-bsn/src/err/json.rs b/tools/tscn-to-bsn/src/err/json.rs new file mode 100644 index 0000000..b0f240e --- /dev/null +++ b/tools/tscn-to-bsn/src/err/json.rs @@ -0,0 +1,8 @@ +use mingling::macros::{buffer, group, r_println, renderer}; + +group!(ErrorJson = serde_json::Error); + +#[renderer(buffer)] +pub fn handle_error_json(err: ErrorJson) { + r_println!("{}", err.to_string()) +} |
