Conditioned taste aversion
Conditioned taste aversion occurs when an animal acquires an aversion to the taste of a food that was paired with aversive stimuli. The effect explains how the aversion develops more strongly for stimuli that cause nausea than other stimuli.
Source: Wikipedia — Conditioned taste aversion (CC BY-SA 4.0)