actually display the error if there is an error in the try catch