summaryrefslogtreecommitdiff
path: root/ext/mixed/js/yomichan.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mixed/js/yomichan.js')
-rw-r--r--ext/mixed/js/yomichan.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mixed/js/yomichan.js b/ext/mixed/js/yomichan.js
index 32408413..61301e30 100644
--- a/ext/mixed/js/yomichan.js
+++ b/ext/mixed/js/yomichan.js
@@ -219,7 +219,7 @@ const yomichan = (() => {
}
error = response.error;
if (error) {
- throw jsonToError(error);
+ throw deserializeError(error);
}
return response.result;
}
@@ -233,7 +233,7 @@ const yomichan = (() => {
if (async) {
promiseOrResult.then(
(result) => { callback({result}); },
- (error) => { callback({error: errorToJson(error)}); }
+ (error) => { callback({error: serializeError(error)}); }
);
return true;
} else {
@@ -241,7 +241,7 @@ const yomichan = (() => {
return false;
}
} catch (error) {
- callback({error: errorToJson(error)});
+ callback({error: serializeError(error)});
return false;
}
}