Correctly print the exception.