You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2017/07/01 00:04:00 UTC

[jira] [Created] (CB-12974) Platform add should fail fast

Jesse MacFadyen created CB-12974:
------------------------------------

             Summary: Platform add should fail fast
                 Key: CB-12974
                 URL: https://issues.apache.org/jira/browse/CB-12974
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-lib
            Reporter: Jesse MacFadyen


We should fail fast if the platform is already installed.

{code}
🚀 time cordova platform add ios@4 -d
Warning: using prerelease version 7.0.2-dev (cordova-lib@7.0.2-dev)
No scripts found for hook "before_platform_add".
Using cordova-fetch for cordova-ios@4
saving
Running command: npm install cordova-ios@4 --save
Command finished with error code 0: npm install,cordova-ios@4,--save
Removing "cordova-" prefix from cordova-ios
Error: Platform ios already added.

real	0m14.939s
user	0m7.347s
sys	0m2.453s
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org