I shat my pants and defecated in public
Oh no! What were you doing when you shat your pants?
I didn't have time to go home and change my clothes, so I decided to wear them anyway.
If you feel any urge to use the bathroom you should always go to the nearest store or public restroom. Leaving feces in your pants can cause infections and bad smells.
I don't think it's the end of the world, but the whole situation was quite embarrassing for me. I should have just went to the bathroom in time.
It sounds like it was embarrassing, but you have a good attitude about it. Sometimes the need to use the restroom can sneak up on us, so it really is good to head to the bathroom and not risk it.