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:
Daniel Hammerschmidt 2025-03-08 18:50:39 +01:00 committed by GitHub
parent d10173a018
commit 7ad4b917be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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