aboutsummaryrefslogtreecommitdiff
path: root/src/webex/wxApi.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-11-01 18:39:23 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-11-01 18:39:23 +0100
commitae8a00527168b13aa59ddc2fbd1f88a0f1e2669c (patch)
treea8599ee8efd254d468ec1ab29ce4ebdabd29c276 /src/webex/wxApi.ts
parent1c5a9d2474f6281869c0ed0accbff4944359722a (diff)
downloadwallet-core-ae8a00527168b13aa59ddc2fbd1f88a0f1e2669c.tar.xz
protocol changes
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r--src/webex/wxApi.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts
index 65c14ac48..39c31ca51 100644
--- a/src/webex/wxApi.ts
+++ b/src/webex/wxApi.ts
@@ -86,6 +86,7 @@ async function callBackend<T extends MessageType>(
return new Promise<MessageMap[T]["response"]>((resolve, reject) => {
chrome.runtime.sendMessage({ type, detail }, (resp) => {
if (typeof resp === "object" && resp && resp.error) {
+ console.warn("response error:", resp)
const e = new WalletApiError(resp.error.message, resp.error);
reject(e);
} else {