Add error information to log