Raymond Camden created CB-11113:
-----------------------------------
Summary: Better error handling when adding plugins
Key: CB-11113
URL: https://issues.apache.org/jira/browse/CB-11113
Project: Apache Cordova
Issue Type: Bug
Components: CLI
Reporter: Raymond Camden
Priority: Minor
When you use "cordova plugin add X", you can get two different errors that are
not very clear. First, if you add a plugin that doesn't match *anything* on
NPM, you get:
Error: Registry returned 404 for GET on https://registry.npmjs.org/dkdfsjfsdjk
I know it is hitting NPM, but a new Cordova dev may not know this. The error
message should be more clear.
Second, if you add something that *does* exist on npm but isn't a plugin, like
"rss" for example, you get:
"Error: Cannot find plugin.xml for plugin 'package'. Please try adding it
again."
This is *very* confusing. I'd say that in *both* cases, you should just use one
error message:
"X was not a npm package or is not a Cordova plugin."
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]