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/tsc/10_dispatch_json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tsc/10_dispatch_json.js') diff --git a/cli/tsc/10_dispatch_json.js b/cli/tsc/10_dispatch_json.js index a25014789..7989f5568 100644 --- a/cli/tsc/10_dispatch_json.js +++ b/cli/tsc/10_dispatch_json.js @@ -22,7 +22,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