Handle error in view grade.