Catch a greater variety of exceptions in Bind combinator #1

Merged
merged 1 commit into from Sep 22, 2011
View
2 lib/deferrable_gratification/combinators/bind.rb
@@ -76,7 +76,7 @@ def self.setup!(first, options = {}, &block)
def run_bound_proc(*args)
begin
second = @proc.call(*args)
- rescue => error
+ rescue Exception => error
self.fail(error)
else
# We expect the block to return a Deferrable, on which we can set