Add input file name on error

This commit adds the name of the potential output file which is not written
because there are no characters saved and thus the output does not differ from
the input file.