assert to log.error when wrong input