module Cucumber::LanguageSupport::LanguageMethods
def invoke(hook, location, scenario, exception_fails_scenario, &block)
def invoke(hook, location, scenario, exception_fails_scenario, &block) begin hook.invoke(location, scenario, &block) rescue Exception => exception if exception_fails_scenario scenario.fail!(exception) else raise end end end