[
https://issues.apache.org/jira/browse/CB-9188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikhil Khandelwal resolved CB-9188.
-----------------------------------
Resolution: Fixed
> Confusing error after delete plugin folder then prepare
> -------------------------------------------------------
>
> Key: CB-9188
> URL: https://issues.apache.org/jira/browse/CB-9188
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaLib
> Reporter: Tim Barham
>
> 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:
> {noformat}
> $ 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
> {noformat}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]