diff --git a/lib/mutant/matcher/method.rb b/lib/mutant/matcher/method.rb index b4e288bd..25305918 100644 --- a/lib/mutant/matcher/method.rb +++ b/lib/mutant/matcher/method.rb @@ -22,7 +22,11 @@ module Mutant return to_enum unless block_given? unless skip? - yield subject if subject + if subject + yield subject + else + $stderr.puts "Cannot find definition of: #{identification} in #{source_location.join(':')}" + end end self