diff --git a/src/error.rs b/src/error.rs index f4219fb..70c97b5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -35,6 +35,11 @@ impl From for Error { Self::BadRequest(value) } + ErrorKind::Command(error) => { + let value = json!({ "error": error.message, "error_code": "InvalidArgument", "link": "string" }); + + Self::BadRequest(value) + } ErrorKind::Authentication { message, .. } => { let value = json!({ "error": message, "error_code": "InvalidSession", "link": "string" });