aboutsummaryrefslogtreecommitdiff
path: root/tools/tscn-to-bsn/src/err
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-08 19:47:17 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-08 19:47:17 +0800
commitdfbc80098c2b46adb14a571947fb7ac8f0169224 (patch)
tree117051fb612b0fd720f7973f84d8d6823e25e3cb /tools/tscn-to-bsn/src/err
parent674879d7676f8a76d728c1fa4c739f9bbbe98b27 (diff)
feat(build-cache): write uid map to JSON cache file
Diffstat (limited to 'tools/tscn-to-bsn/src/err')
-rw-r--r--tools/tscn-to-bsn/src/err/json.rs8
-rw-r--r--tools/tscn-to-bsn/src/err/mod.rs1
2 files changed, 9 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())
+}
diff --git a/tools/tscn-to-bsn/src/err/mod.rs b/tools/tscn-to-bsn/src/err/mod.rs
index 29f6fd0..4721ea1 100644
--- a/tools/tscn-to-bsn/src/err/mod.rs
+++ b/tools/tscn-to-bsn/src/err/mod.rs
@@ -1,3 +1,4 @@
pub mod io;
+pub mod json;
pub mod ron;
pub mod tscn_parse;