I think my reaction would depend on which of my children behaved like this. One of them, who I strongly suspect is autistic, has always had an aversion to certain foods and has equally strong reactions to anything that she finds wrong. She can't help it but as she has become older, she is getting better about how she reacts and we have become better at how we handle it. I know that if I was critical of her reaction, things would get worse so sometimes, least said, soonest mended.
One of my sons hates mayo but always checks that dishes don't include it and both of them would certainly know I didn't appreciate their ingratitude if I was paying the bill or I would tease them until they came out of it which they would.
I can't eat food that has baked bean juice on it or if it has coriander on it but I will usually ask if I think it might be a problem. If my food turns up with either ingredient, I will send it back if it hasn't been included in the ingredients. I don't sulk or get angry, I just politely explain why I can't eat it and ask them to change it. Most restaurants are happy to oblige and I always make my gratitude known.