error check the setopt command