Is is possible the pain meds you gave him made him vomit. I react very badly to strong meds with codeine in them - lots of vomiting. Migrains can cause vomiting too.