Improved exceptions and reporting exceptions for command-line compiler.