fixed a formatting issue in the exception handler