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

Cordova reports error events with incorrect log level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.0.0
    • None
    • cordova-lib

    Description

      In case of fatal errors cordova run and cordova emulate methods emit error messages using log event. This code probably should be changed to use 'warn' level. (We can't use 'error' here due to its special meaning in Node: https://nodejs.org/api/events.html#events_error_events)

      There is also other places, where 'log' events is used incorrectly:

      cordova-lib\src\cordova\targets.js: events.emit('log', 'An unexpected error has occured');
      cordova-lib\src\plugman\browserify.js: events.emit('log', 'error while generating cordova.js');
      cordova-lib\src\plugman\browserify.js: events.emit('log', 'Error running platform version script');

      Attachments

        Activity

          People

            vladimir.kotikov Vladimir Kotikov
            vladimir.kotikov Vladimir Kotikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: