Fixed output when filenames in error messages cannot be found