1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

print stack trace on plugin error

This commit is contained in:
Daniel Hammerschmidt 2025-03-07 02:38:07 +01:00
parent 1ac8e520d2
commit d32f2cac6c

View file

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