Correct output for exceptions