update name from getError to hasError