Issue #19076: Don't pass the redundant 'file' argument to self.error().