aboutsummaryrefslogtreecommitdiff
path: root/tools/tscn-to-bsn/src/err/json.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tscn-to-bsn/src/err/json.rs')
-rw-r--r--tools/tscn-to-bsn/src/err/json.rs8
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())
+}