Throw CLI errors

Otherwise, the process will fail silently – throwing the error
will display the message and stack trace, making it debugging
much simpler.