mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 17:44:52 -04:00
use error object for callback to include stack trace
This commit is contained in:
parent
d2a7a3b0bb
commit
41da6f455a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue