Adding the filename in the error message for easier debugging