mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
a plugin's package.json can be invalid too
This commit is contained in:
@@ -709,7 +709,7 @@ var fs = require('fs'),
|
||||
packageInfo = JSON.parse(results.packageJSON);
|
||||
pluginInfo = JSON.parse(results.pluginJSON);
|
||||
} catch (err) {
|
||||
winston.warn("Plugin: " + file + " is corrupted or invalid. Please check plugin.json for errors.");
|
||||
winston.warn("Plugin: " + file + " is corrupted or invalid. Please check package.json and plugin.json for errors.");
|
||||
return next(err, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user