fix: stack trace

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 54b497258f
commit 4031a8cab1

@ -44,7 +44,7 @@ Data.loadPluginInfo = async function (pluginPath) {
} catch (err) { } catch (err) {
var pluginDir = path.basename(pluginPath); var pluginDir = path.basename(pluginPath);
winston.error('[plugins/' + pluginDir + '] Error in plugin.json or package.json!', err.stack); winston.error('[plugins/' + pluginDir + '] Error in plugin.json or package.json!' + err.stack);
throw new Error('[[error:parse-error]]'); throw new Error('[[error:parse-error]]');
} }
return pluginData; return pluginData;

Loading…
Cancel
Save