lib/inspec/runner.rb in inspec-1.13.0 vs lib/inspec/runner.rb in inspec-1.14.0

- old
+ new

@@ -164,25 +164,25 @@ profile = Inspec::Profile.for_target(target, cache: @cache, backend: @backend, controls: @controls, attributes: @conf[:attributes]) - fail "Could not resolve #{target} to valid input." if profile.nil? + raise "Could not resolve #{target} to valid input." if profile.nil? @target_profiles << profile if supports_profile?(profile) end def supports_profile?(profile) return true if @ignore_supports if !profile.supports_runtime? - fail 'This profile requires InSpec version '\ + raise 'This profile requires InSpec version '\ "#{profile.metadata.inspec_requirement}. You are running "\ "InSpec v#{Inspec::VERSION}.\n" end if !profile.supports_os? - fail "This OS/platform (#{@backend.os[:name]}) is not supported by this profile." + raise "This OS/platform (#{@backend.os[:name]}) is not supported by this profile." end true end @@ -247,10 +247,10 @@ # return all tests if none succeeds; we will just report full failure return tests if ok_tests.empty? # otherwise return all working tests return ok_tests else - fail "A rule was registered with #{method_name.inspect}, "\ + raise "A rule was registered with #{method_name.inspect}, "\ "which isn't understood and cannot be processed." end end nil end