Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
If you delete a plugin folder (because you thought that was a good way to remove the plugin, for example) you end up getting a confusing error every time we prepare:
$ cordova prepare Error: ENOENT, no such file or directory 'd:\CordovaApps\test1\plugins\org.apache.cordova.camera\plugin.xml' at Error (native) at Object.fs.openSync (fs.js:500:18) at Object.fs.readFileSync (fs.js:352:15) at Object.module.exports.parseElementtreeSync (d:\git\cordova-lib\cordova-lib\src\util\xml-helpers.js:118:27) at new PluginInfo (d:\git\cordova-lib\cordova-lib\src\PluginInfo.js:320:37) at PluginInfoProvider.get (d:\git\cordova-lib\cordova-lib\src\PluginInfoProvider.js:35:32) at d:\git\cordova-lib\cordova-lib\src\plugman\prepare.js:79:45 at Array.forEach (native) at Object.handlePrepare (d:\git\cordova-lib\cordova-lib\src\plugman\prepare.js:77:24) at d:\git\cordova-lib\cordova-lib\src\cordova\prepare.js:109:21
While this is not a supported scenario, it would be good if we displayed a useful error message to guide the user how to proceed.