diff options
Diffstat (limited to 'tools/tscn-to-bsn/src/err')
| -rw-r--r-- | tools/tscn-to-bsn/src/err/json.rs | 8 | ||||
| -rw-r--r-- | tools/tscn-to-bsn/src/err/mod.rs | 1 |
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; |
