Sean Hayes is pretty much always all smiles, including, it turns out, when talking about a serious-sounding health scare he recently experienced.

In an appearance on The Ellen DeGeneres Show, the Will & Grace star revealed that he was actually supposed to be on the show two weeks ago 鈥 but he ended up in the emergency room instead.

鈥淚 went to bed at night and all of a sudden I felt this excruciating pain in my stomach,鈥 he told DeGeneres. 鈥淚 went to the ER, and 鈥 thank God I did.鈥

It turned out that Hayes鈥 small intestine had burst open. 鈥淚t was poisoning my body,鈥 he said nonchalantly. 鈥淭hey went in there and they clipped off the bad part and put it back together with, like, a chip clip, you know? Now my potato chips are stale.鈥

Hayes was so eager to make up his missed Ellen appearance that he was on the phone making arrangements with a producer while still under the influence of pain medication issued after his procedure.

鈥淪cotty [Icenogle], my husband, is in the room with me, and he鈥檚 like, 鈥榃hat鈥檚 wrong with you, you can鈥檛 do the Ellen show on Monday! Are you high?'鈥 the actor recalled. 鈥淎nd I鈥檓 like, 鈥榊eah! I鈥檓 really high!'鈥

Fortunately, Hayes seems fully on the mend now. He even brought breathing exercises from the hospital to use in a game, which brought DeGeneres to tears. Too good. All our best to Hayes and his health!

Are you surprised to hear about Sean Hayes鈥 medical emergency? Let us know @BritandCo!

(Photo via Matt Winkelmeyer/Getty)