diff options
Diffstat (limited to 'cli/errors.rs')
-rw-r--r-- | cli/errors.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cli/errors.rs b/cli/errors.rs index 6b53ac8d0..2d7bb1cd6 100644 --- a/cli/errors.rs +++ b/cli/errors.rs @@ -228,9 +228,3 @@ pub fn get_error_class(e: &ErrBox) -> &'static str { panic!("ErrBox '{}' contains boxed error of unknown type", e); }) } - -pub fn rust_err_to_json(error: &ErrBox) -> Box<[u8]> { - let error_value = - json!({ "kind": get_error_class(error), "message": error.to_string()}); - serde_json::to_vec(&error_value).unwrap().into_boxed_slice() -} |