summaryrefslogtreecommitdiff
path: root/src/webex/wxBackend.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/webex/wxBackend.ts')
-rw-r--r--src/webex/wxBackend.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts
index eaae41b9f..49f6e7112 100644
--- a/src/webex/wxBackend.ts
+++ b/src/webex/wxBackend.ts
@@ -44,6 +44,7 @@ import {
} from "../wallet";
import { ChromeBadge } from "./chromeBadge";
+
import URI = require("urijs");
import Port = chrome.runtime.Port;
import MessageSender = chrome.runtime.MessageSender;
@@ -300,9 +301,10 @@ function makeHandlers(db: IDBDatabase,
async function dispatch(handlers: any, req: any, sender: any, sendResponse: any): Promise<void> {
if (!(req.type in handlers)) {
- console.error(`Request type ${JSON.stringify(req)} unknown, req ${req.type}`);
+ console.error(`Request type ${req.type} unknown`);
+ console.error(`Request was ${req}`);
try {
- sendResponse({ error: "request unknown" });
+ sendResponse({ error: "request unknown", requestType: req.type });
} catch (e) {
// might fail if tab disconnected
}