From 9fe6dc596573f38b13f0b15c946b8bc16013fdd9 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 29 Jan 2018 18:59:45 +0100 Subject: better error handling --- src/webex/wxApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/webex/wxApi.ts') 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( return new Promise((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); -- cgit v1.2.3