Aw, he totally felt your pain & knew what to do! That's so awesome!!
Dogs are so sensitive about what their owners are going through. My Lexie is a seizure alert dog. you can't really train that. it's a combination of scent & behavior that triggers their response.
So yes, your baby is tuned into you & so glad it made you feel better!!!