trying to display the exception messages in the output if there are any