if a locally installed plugin not published to npm has a syntax error, this fixes it. closes #2512

This commit is contained in:
Julian Lam
2014-12-10 14:59:21 -05:00
parent 9b083a6a66
commit 273e26ddb1

View File

@@ -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();