Added traceback information in error message when exception caught