A petrol station employee was subjected to racist abuse before being robbed in the early hours of the morning.
The attacker was a teenager, then aged 17, who had never been in any trouble before.
Connor Williams, now 18, of Dyserth Road in Blacon, was sentenced to 20 months youth detention for the attack, which took place at the Texaco garage on Sealand Road in Chester.
Williams, who wept throughout much of the sentencing hearing, admitted charges of robbery and racially aggravated assault relating to the incident, which took place in December 14 last year.
Mold Crown Court heard how Williams caught a taxi to the garage and was complaining about the cash machine outside which his mother had tried to use earlier in the day.
Prosecutor David Mainstone said the member of staff on duty, Mr Nadarajah Pirapakaren, explained to Williams that the machine outside was nothing to do with him and that he could not help.
There was an altercation between the two and later the defendant kicked his way into the premises and armed himself with two wine bottles.
He threatened the victim with the bottles, demanded cash and cigarettes and threatened to kill him.
As the victim rang the police, the Williams forced a door to the till area and dragged the staff member out into the shop floor.
He hit Mr Pirapakaren with a wine bottle which smashed.
In a bid to defend himself, the victim hit back at Williams with a bottle.
Williams then picked the victim up and threw him to the floor - where the staff member cut his hand on broken glass – before holding him in a headlock and dragging him to the front door.
Williams then let Mr Pirapakaren go and ran out of the shop.
He was arrested at Blacon about 30 minutes later by police officers.
The robbery was all captured on CCTV and the footage was played to Judge David Hale, who said he had used grossly offensive racist language before robbing him.
“It must have been very frightening for him,” the judge said.
“On December 14 in the middle of the night you go to this garage a mile or so from Blacon because your mother had some difficulty with her card.
“It was nothing to do with the garage, you know that now.
'Lost your rag'
“But because you were drunk you were not in a position to understand what was happening.
“You lost your rag with the man who happened to be working at the petrol station – who was on his own and vulnerable.”
Christopher Hunt, defending, said that it was a rather odd offence by a young man who had not committed any offences before or since.
The defendant had a difficult upbringing, was a very young 18, was himself vulnerable, naive and impulsive and that his frustration boiled over in a completely illogical way.
Mr Hunt added that the trigger for the offence was the protection of his mother who had difficulty with her card at the cash machine on the garage forecourt and there were fears the card had been copied.
The CCTV showed quite a lengthy period of him simply holding on to the staff member and it was his case that he feared being beaten up himself.
He dragged the other man to the door so that he could get himself out safely.
Mr Hunt said that it was clearly an unpleasant ordeal for the victim but said that the defendant himself was vulnerable and there were concerns about how he would cope in custody.