AthennaIO/Artisan

[Bug]: throwing error two times when exception is throwed

Closed this issue · 0 comments

Version

1.3.6

Steps to reproduce

  1. Throw any exception in any Artisan command
  2. One pretty error will be printed and other error not treated

Expected behavior

Is expected to see only the pretty error

Actual behavior

One pretty error will be printed and other error not treated

Additional context

We just need to change the throw error in ConsoleExceptionHandler.js file to process.exit().

Environment

System:
    OS: macOS 12.5.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 74.03 MB / 16.00 GB
    Shell: 5.8 - /opt/homebrew/bin/zsh
  Binaries:
    Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
    npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm