Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-1305

Error thrown when an uncaughtException is thrown by the CLI process

    Details

    • Severity:
      Major
    • Story Points:
      8
    • Sprint:
      2018 Sprint 05 Tooling

      Description

      Description

      When an uncaughtException occurs in the CLI it's possible the CLI will actually error out with the below, we just need to check if logger exists before using it like the other instances.

      C:\Users\build\.appcelerator\install\7.0.2\package\bin\appc:182
      	logger.error('An uncaught exception was thrown!');
      	       ^
      TypeError: Cannot read property 'error' of undefined
          at process.uncaughtException (C:\Users\build\.appcelerator\install\7.0.2\package\bin\appc:182:9)
          at emitOne (events.js:116:13)
          at process.emit (events.js:211:7)
          at process._fatalException (bootstrap_node.js:374:26)
      

      Steps to reproduce
      1. Cause an uncaught exception in the CLI (TODO)
      Actual

      An error in our code is logged, causing us to lose the uncaughtException error

      Expected

      Exception should be logged

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Feon Sua Xin Miao
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code