You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2015/09/01 02:13:46 UTC

[jira] [Updated] (CB-8316) Invalid identifier error too vague

     [ https://issues.apache.org/jira/browse/CB-8316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-8316:
---------------------------------
    Component/s: CLI

> Invalid identifier error too vague
> ----------------------------------
>
>                 Key: CB-8316
>                 URL: https://issues.apache.org/jira/browse/CB-8316
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI
>    Affects Versions: 4.0.0
>            Reporter: Fabio Poloni
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The error message if an invalid identifier is entered is too vague. I had to check the source of valid-identifier to understand the limitation for the identifier.
> {code}
> $ cordova create hello com.example-company.hello HelloWorld
> App id contains a reserved word, or is not a valid identifier.
> {code}
> I'd wish something more useful like this:
> {code}
> $ cordova create hello com.example-company.hello HelloWorld
> App id must not contain a reserved word and must match this regular expression: ([a-zA-Z_$][a-zA-Z\d_$]*\.)*[a-zA-Z_$][a-zA-Z\d_$]*
> {code}



--
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