print the error if a call the handler in afterEval fails