From fcf008d0ae93712b9fa0aa3e2bd9b6b74719cf4f Mon Sep 17 00:00:00 2001 From: "Michael Fellinger m.fellinger@gmail.com" Date: Thu, 13 Mar 2008 04:00:42 +0100 Subject: Show exception instead of missing error if a spec is empty because of it. darcs-hash:20080313030042-7868f-56d834d72c945bf3e5395dc9942e0cce4c2cf81b.gz --- lib/bacon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/bacon.rb b/lib/bacon.rb index fcb3bbe..9f83fb6 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -148,7 +148,7 @@ module Bacon rescued = true raise e ensure - if Counter[:requirements] == prev_req + if Counter[:requirements] == prev_req and not rescued raise Error.new(:missing, "empty specification: #{@name} #{description}") end -- cgit 1.4.1