mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-18 02:20:49 +01:00
Provide more error information to logs
Provides full stack instead of just message
This commit is contained in:
@@ -69,7 +69,7 @@ function loadPluginInfo(pluginPath, callback) {
|
||||
} catch (err) {
|
||||
var pluginDir = path.basename(pluginPath);
|
||||
|
||||
winston.error('[plugins/' + pluginDir + '] Error in plugin.json or package.json! ' + err.message);
|
||||
winston.error('[plugins/' + pluginDir + '] Error in plugin.json or package.json!', err);
|
||||
return callback(new Error('[[error:parse-error]]'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user