print error messages and offending filenames on the same line