mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-13 13:02:55 -04:00
print stack trace on plugin error and add space for readability of error message (#6859)
* add space for readability of error message * print stack trace on plugin error
This commit is contained in:
parent
d10173a018
commit
7ad4b917be
@ -139,7 +139,7 @@ module.exports.pluginHandler = function (parent) {
|
||||
try {
|
||||
obj.plugins[p][hookName](...args);
|
||||
} catch (e) {
|
||||
console.log("Error occurred while running plugin hook" + p + ':' + hookName + ' (' + e + ')');
|
||||
console.log("Error occurred while running plugin hook " + p + ':' + hookName, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user