aboutsummaryrefslogtreecommitdiff
path: root/src/webex/wxBackend.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-30 18:33:28 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-30 18:33:28 +0200
commite5b88ee00392d855b9d343a3dd80afeb33f44d79 (patch)
treebe4a882fbefd8797acfc37e2fb32b80001d37a1c /src/webex/wxBackend.ts
parentb6df47f25e6db2de0a7563730f8881f935a94f29 (diff)
downloadwallet-core-e5b88ee00392d855b9d343a3dd80afeb33f44d79.tar.xz
skeleton for better RPC types
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
}