(CNN) Charges have been dropped against a mother who let her 3-year-old pee in a gas station parking lot.

The case was dismissed Thursday, with the state's representative saying in court that the law didn't fit in this situation.

"The mom was trying to be a good mom," lawyer Ben Allen said on behalf of the state. "The child had an emergency come up, and Mom took care of the emergency. That's what we expect of all good moms."

Brooke Johns was facing up to 60 days in jail and a $5,000 fine.

The incident occurred March 29, when Johns -- then nine months pregnant -- was driving in Augusta. Her son told her he was about to pee his pants, but by the time Johns pulled into a gas station parking lot, she realized they wouldn't make it to the toilet.

Read More