[COOK-3880] replace "raise" with "fail"