Sucking vomit into their lungs can trigger an episode of aspiration pneumonia which can be life-threatening.
More rare reactions to dog anesthesia are side effects like seizures, visual impairments, clotting disorders (like von Willebrand's disease in dogs), and system organ failures of the liver, kidney, or heart.