Improved error reports, now specifies near which line the error occured