Improved exceptions and reporting exceptions for command-line compiler.

end with an endl? like in the one below...