cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Camden (JIRA)" <j...@apache.org>
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
                 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message