Only add error if filename matches