Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12974

Platform add should fail fast

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-fetch, cordova-lib
    • None

    Description

      We should fail fast if the platform is already installed.

      🚀 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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            purplecabbage Jesse MacFadyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: