mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +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) {
|
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 it errored out because a package.json or plugin.json couldn't be read, no need to do this stuff
|
||||||
if (plugin.error) {
|
if (plugin.error) {
|
||||||
|
pluginMap[plugin.id] = pluginMap[plugin.id] || {};
|
||||||
pluginMap[plugin.id].installed = true;
|
pluginMap[plugin.id].installed = true;
|
||||||
pluginMap[plugin.id].error = true;
|
pluginMap[plugin.id].error = true;
|
||||||
return next();
|
return next();
|
||||||
|
|||||||
Reference in New Issue
Block a user