Made error messages independant of file name.