A miscarriage of justice

A wrong or mistaken decision (in a court of law).

Everybody thought that the light sentence that the murderer received was a miscarriage of justice.