Add error detail to the log file of event-handler.