Improved exceptions and reporting exceptions for command-line compiler.

!= nullptr is somewhat redundant and draws my attention away from what matters to this triviality.