Fixing an issue when multiple same patch error messages are printed for the same file.