update log.error to fail.warn