From c8b5f1e454d5cb2bd7580bbe0ac4fa83237e9f41 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 26 Aug 2020 18:20:22 +0200 Subject: Simplify ErrBox-to-class mapping & hook it up to core json ops (#7195) --- cli/rt/10_dispatch_json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/rt/10_dispatch_json.js') diff --git a/cli/rt/10_dispatch_json.js b/cli/rt/10_dispatch_json.js index 05b4d46ed..4b244081a 100644 --- a/cli/rt/10_dispatch_json.js +++ b/cli/rt/10_dispatch_json.js @@ -21,7 +21,7 @@ function unwrapResponse(res) { if (res.err != null) { - throw new (core.getErrorClass(res.err.kind))(res.err.message); + throw new (core.getErrorClass(res.err.className))(res.err.message); } util.assert(res.ok != null); return res.ok; -- cgit v1.2.3