Question: what to do when your dog throws up food?
Answer: Withhold food for a few hours, but make sure to consult your veterinarian on how long first. ... 
Once vomiting stops, introduce a bland, low-fat food, and feed your dog small amounts three to six times daily for a few days.