cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Camden (JIRA)" <>
Subject [jira] [Created] (CB-11113) Better error handling when adding plugins
Date Tue, 19 Apr 2016 15:50:25 GMT
Raymond Camden created CB-11113:

             Summary: Better error handling when adding plugins
                 Key: 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

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message