summaryrefslogtreecommitdiff
path: root/cli/tsc
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-08-26 18:20:22 +0200
committerBert Belder <bertbelder@gmail.com>2020-08-26 18:48:04 +0200
commitc8b5f1e454d5cb2bd7580bbe0ac4fa83237e9f41 (patch)
tree6982e7cd91eb17e85c89658bc078947b6a4e8c04 /cli/tsc
parent765235341b6075bcf64d8ebcdb61e350d251514d (diff)
Simplify ErrBox-to-class mapping & hook it up to core json ops (#7195)
Diffstat (limited to 'cli/tsc')
-rw-r--r--cli/tsc/10_dispatch_json.js2
1 files changed, 1 insertions, 1 deletions
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;