Add error code to get log.