Improved exceptions and reporting exceptions for command-line compiler.

single line