From 41da6f455ab296740c521a1960cb777a92362bb7 Mon Sep 17 00:00:00 2001 From: Felix Wiedenbach Date: Thu, 28 Jan 2021 21:23:48 +0100 Subject: [PATCH] use error object for callback to include stack trace --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 69cae7a2..d96d0ceb 100644 --- a/js/main.js +++ b/js/main.js @@ -295,7 +295,7 @@ var MM = (function () { // Otherwise cancel show action. if (module.lockStrings.length !== 0 && options.force !== true) { Log.log("Will not show " + module.name + ". LockStrings active: " + module.lockStrings.join(",")); - callback("ERR_ACTIVE_LOCK_STRINGS"); + callback(new Error("ERR_ACTIVE_LOCK_STRINGS")); return; }