aboutsummaryrefslogtreecommitdiff
path: root/content/externalLicenseChecker.js
diff options
context:
space:
mode:
Diffstat (limited to 'content/externalLicenseChecker.js')
-rw-r--r--content/externalLicenseChecker.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/content/externalLicenseChecker.js b/content/externalLicenseChecker.js
index 89f871f..f150cea 100644
--- a/content/externalLicenseChecker.js
+++ b/content/externalLicenseChecker.js
@@ -79,9 +79,13 @@
}
browser.runtime.onMessage.addListener(async m => {
- if (m.action in handlers) {
+ if (m.action in handlers) try {
debug("Received message", m);
- return await handlers[m.action](m);
+ let result = await handlers[m.action](m);
+ console.debug("Returning", result);
+ return result;
+ } catch (e) {
+ console.error(e);
}
});
}