A man who brandished a broken bottle as he threatened children and adults who were setting up a town centre skate park has been jailed for 50 weeks.

Ryan Peck was in the middle of Malmesbury when he was abusive to the people before turning the weapon on himself and cutting at his throat.

When the 22-year-old was first sentenced at Swindon Crown Court he was given a chance of a community order.

But after failing to comply with the conditions of it a judge said he was left with no option but to jail him. And he said that he hoped it meant he would be able to get settled accommodation arranged for him when he is released later in the year.

Peck was close to the Market Cross on Valentines Day 2017 when the skate park was being set up and he and others started shouting abuse.

During the following 45 minutes he was abusive and threatening before breaking the bottle and jabbing it at a man.

He then smashed another bottle and used it to slash his own neck as children looked on in horror, the court was told.

Peck formerly of Westcroft, Chippenham, pleaded guilty to affray and possessing an offensive weapon.

Andrew Stone, prosecuting, said that after being given the chance by a judge in summer 2017 Peck did well on the order, which included mental health treatment.

But after a year his compliance began ‘spiralling out of control’ as drink and drugs led to a deterioration in his mental health.

As a result he said that the probation service could no longer work with him and asked for the matter to be resentenced.

Ellen McAnaw, defending, said that when he had stable accommodation he did well but when that went wrong he started to slip.

Having been remanded in custody in October she said there was no option but to impose a custodial sentence.

Jailing him Judge Jason Taylor QC said “The sentence is designed to give you as much help as possible.”