LAYTON -- After buying two candy bars, a man failed in his attempt to rob a Dollar Tree store and still got caught.
"He didn't get to eat or keep the candy bars, either," said Layton Police Sgt. Shawn Horton.
Robert Gibbs, 21, was arrested Wednesday night and booked into Davis County Jail for first-degree felony aggravated robbery.
The incident started around 9:15 p.m. when police say Gibbs purchased two candy bars at Dollar Tree, 413 W. 1425 North, then displayed a handgun to a female cashier.
Gibbs demanded money, police say, but the cashier shut the register without giving him any.
"I don't know why she made the decision to do that, but I'm glad it worked out OK for her," Horton said. "That's not the safest thing to do."
After the cashier shut the register, Gibbs fled the store.
Minutes later, a Layton police officer pulled Gibbs over for speeding and driving without headlights. As the officer was collecting information from Gibbs, he heard the robbery call on his radio.
Realizing Gibbs matched the description of the suspect, the officer returned to his car and called for backup.
The suspect was reportedly wearing a black "Alta" cap, a white shirt and running pants. Because of the information that the suspect had a gun, the officer waited for two more officers to arrive.
"They all took their guns out and they covered the driver, asked him to walk back to them and they placed him in custody," Horton said. "It was just an extra measure of safety so they don't walk up to the car and get shot at."
Along with a Dollar Tree bag with two candy bars in it, police found an airsoft gun that was a convincing replica of a Taurus semiautomatic handgun in the car.
The Dollar Tree cashier positively identified Gibbs as the man who attempted to rob the store.
Detectives and Crime Scene Investigators also responded to the Dollar Store to further investigate the crime and process the scene.