print errors for invalid input files