Error log fix

File name wasn't displayed for errors on invalid files.