Added better error messages

The exception includes the information about the file and line that has been processed