Logical fallacy
Fallacy fallacy
An argument for a claim contains an error, so the speaker concludes that the claim itself must be false. The claim may still hold for independent reasons.
Examples
His reason for believing it rained is poor, so it definitely did not rain.
One bad argument for the new timetable proves the timetable has no benefits.