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

cordova/run sometimes fails to report error when DebugToken creation fails

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:

      This occurred to me on Windows when i hadn't yet established my session with the RIM Proxy [via opening a browser window]. The debugtokenrequest executable was failing due to this. When i ran the run script it did not inform me of any error; Instead it exited abruptly.

      I assume this also occurs on Mac.

      Actual result:

      C:\Program Files\BlackBerry\BB10 WebWorks SDK 2.0.0.36\app>.\cordova\run -k password
      [INFO] Target default selected
      [INFO] Generating debug token

      Expected result:

      Execution to continue or at least show a proper error.

      After some digging, it looks like the issue occurs from lib/run. The callback for the waterfall that handles the debugToken creation/install [getValidatedTarget] does not handle errors of type "object". It only handles strings and numbers.

      Attachments

        Activity

          People

            jeffheifetz Jeffrey Heifetz
            jeffheifetz Jeffrey Heifetz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: