Dog poop caused a flight to make an emergency landing on Wednesday. As funny as it sounds, it wasn't a joke for the passengers on board.

US Airways Flight 598 was heading to Philadelphia form Los Angeles when the flight was diverted because of some dog poop in the aisle, Inside Edition reports.

"About an hour into the flight, I started smelling this terrible smell. I look up the aisle way and there's a dog pooping right in the middle of the aisle. It's a big dog, three or four feet tall or long, and he was just going!" passenger Steve McCall told Inside Edition.

Some passengers took to Twitter to post pictures and tell their friends about the unbelievable ordeal.  "So the full-sized dog that's on my flight, well it did what dogs do & went to the bathroom when it felt like it smack dab in the middle of aisle," passenger Chris Law tweeted along with a photo.

Passenger said that the dog went not once, not twice, but as many as three times in the aisle. It got so bad that passengers became physically ill on board and the pilot had to make an emergency landing. "A couple of people started dry-heaving, a couple of people were throwing up," McCall said. The flight didn't have enough supplies to keep up with the mess.

"The second time after the dog pooped they ran out of paper towels, they didn't have anything else. The pilot comes on the radio, 'Hey, we have a situation in the back, we're going to have to emergency land,'" McCall added.

The plane was diverted to Kansas City, Missouri, so cleaning crews could take care of the mess. Once the plane was cleaned, it was able to continue on its way to Philadelphia.

However the dog poop incident wasn't even the beginning of the headache for passengers. Before the flight took off, it was delayed for two hours on the tarmac in Los Angeles due to fuel problems, which was a long time for passengers to wait and added to the dog not being able to hold it in. US Airways says the animal was a service dog.