diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-01-29 18:59:45 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-01-29 18:59:45 +0100 |
commit | 9fe6dc596573f38b13f0b15c946b8bc16013fdd9 (patch) | |
tree | 6fe2ba7264d488d3189b0ab560d2685b14e4fe12 /src/webex/wxApi.ts | |
parent | 83674bd7a9d4524753f6d438ea88b76a52d43a9b (diff) | |
download | wallet-core-9fe6dc596573f38b13f0b15c946b8bc16013fdd9.tar.xz |
better error handling
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r-- | src/webex/wxApi.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index ee1ca23ba..32788d37b 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -86,7 +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) { - const e = new WalletApiError(resp.error.message, resp); + const e = new WalletApiError(resp.message, resp); reject(e); } else { resolve(resp); |