use error object for callback to include stack trace

This commit is contained in:
Felix Wiedenbach 2021-01-28 21:23:48 +01:00
parent d2a7a3b0bb
commit 41da6f455a

View File

@ -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;
}