mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
if a locally installed plugin not published to npm has a syntax error, this fixes it. closes #2512
This commit is contained in:
@@ -604,6 +604,7 @@ var fs = require('fs'),
|
||||
async.each(installedPlugins, function(plugin, next) {
|
||||
// If it errored out because a package.json or plugin.json couldn't be read, no need to do this stuff
|
||||
if (plugin.error) {
|
||||
pluginMap[plugin.id] = pluginMap[plugin.id] || {};
|
||||
pluginMap[plugin.id].installed = true;
|
||||
pluginMap[plugin.id].error = true;
|
||||
return next();
|
||||
|
||||
Reference in New Issue
Block a user