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

Catch exceptions and print nice error when cordova-cli run from a non cordova project.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-cli
    • Labels:
      None

      Description

      cordova prepare prints scary stack trace when run from the wrong directory. This is likely a common error and we should make it clear what is happening.

      Seems we are already catching the case, just failing to report it gracefully:

      throw new Error('Current working directory is not a Cordova-based

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kamrik Mark Koudritsky
                Reporter:
                mmocny Michal Mocny
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: