A miscarriage of justice:

FORT BRAGG, N.C. — Sgt. Bowe Bergdahl, who walked off his Army base in Afghanistan in 2009 and was held captive by the Taliban for five years, received no prison time for desertion or endangering troops, but was ordered by a military judge on Friday to be dishonorably discharged from the Army.

The sentencing took only minutes in a case where prosecutors had sought 14 years in a military prison.

The military judge, Col. Jeffery R. Nance of the Army, also reduced Sergeant Bergdahl’s rank to private and required him to forfeit $1,000 a month of his pay for 10 months.