From 59ca66a207ceb4699e1322ce22f953ac0f124f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 7 Aug 2020 22:47:18 +0200 Subject: Encode op errors as strings instead of numbers (#6977) --- cli/ops/dispatch_json.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/ops/dispatch_json.rs') diff --git a/cli/ops/dispatch_json.rs b/cli/ops/dispatch_json.rs index c3a1c3b3f..ad6947dd1 100644 --- a/cli/ops/dispatch_json.rs +++ b/cli/ops/dispatch_json.rs @@ -27,7 +27,7 @@ pub enum JsonOp { fn json_err(err: OpError) -> Value { json!({ "message": err.msg, - "kind": err.kind as u32, + "kind": err.kind_str, }) } -- cgit v1.2.3