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

Cordova returns unknown errors messages when symlinks are pointing to bad locations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Steps to reproduce:
      1. npm install cordova
      2. cordova create project
      3. cd project
      4. cordova platform add firefoxos
      5. cordova platform remove firefoxos
      6. mv ~/.cordova/lib/firefoxos/cordova/3.1.0 ~/.cordova/lib/firefoxos/cordova/3.1.0-orig
      7. ln -s /no/such/firefoxos ~/.cordova/lib/firefoxos/cordova/3.1.0
      8. cordova platform add firefoxos

      Actual result:
      Error that comes back that doesn't really say what is wrong:
      shell.js: internal error
      Error: EEXIST, file already exists '~/.cordova/lib/firefoxos/cordova/3.1.0'

      Expected result:
      Some sort of error that says something like this:
      [Error: Unable to fetch platform blackberry10: ~/.cordova/lib/firefoxos/cordova/3.1.0 points to non-existent or unreadable location: /no/such/firefoxos]

      Attachments

        Activity

          People

            jsoref Josh Soref
            jgee Jenny Gee
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: