President Trump called a military judge’s ruling that Bowe Bergdahl serve no prison time a “complete and total disgrace.”

“The decision on Sergeant Bergdahl is a complete and total disgrace to our Country and to our Military,” Trump tweeted Friday.

The military judge ruled Friday morning that Bergdahl, who deserted his post in Afghanistan in 2009, shouldn’t serve time in prison. The judge also gave Bergdahl a dishonorable discharge and reduced his rank to private. Additionally, Bergdahl must forfeit pay equal to $1,000 per month for 10 months.

Bergdahl was taken captive by the Taliban after walking off his post and was held for five years.

He was released in 2014 as part of a prisoner exchange for five Taliban members who were detained at Guantanamo Bay.

Bergdahl pleaded guilty to charges of desertion and misbehavior before the enemy. He faced up to life in prison.

Trump had been critical of Bergdahl before, calling him a “traitor” in August 2016 and saying he “should have been executed.”