In a disappointing manner.
I spent countless hours revising, but, disappointingly, I still failed the exam.