NEWARK, N.J. (CNN) — TSA agents at New Jersey’s Newark Liberty International Airport were prepared to give a traveler crap when they spotted a revolver in his carry-on bag. But upon closer inspection, what they thought was a gun was really a gun-shaped toilet paper holder.

A traveler was stopped when a toilet paper holder shaped like a revolver triggered an alarm at Newark Liberty International Airport. (credit: TSA)

READ MORE: 14-Year-Old Boy Shot Nearly 20 Times, Killed While Waiting For SEPTA Bus In North Philadelphia, Police Say

“Yes, this most unusual revolver was not designed to spin bullets,” TSA joked in a press release on Thursday. “It was designed to spin toilet paper.”

The “realistic replica gun” triggered an alarm when the bag it was in went through an X-ray machine.

READ MORE: Police Investigating 'Suspicious' Deaths Of 2 Men Found In Box Truck In Northeast Philadelphia

“TSA does not permit travelers to bring real or replica firearms through a checkpoint,” the agency said.

The traveler was given several options: return the item to his vehicle, put it in a checked bag, give it to a friend who wasn’t traveling, or surrender it to TSA. He chose to surrender it, TSA spokesperson Lisa Farbstein told CNN.

After that, he rolled on through to his gate.

MORE NEWS: Crash Involving Tractor-Trailer, SUV Closes Route 130 North In Burlington County

The-CNN-Wire™ & © 2019 Cable News Network, Inc., a WarnerMedia Company. All rights reserved.