update qoob\utils\benchmark combine two error checks into one.