diff options
Diffstat (limited to 'lib/bacon.rb')
-rw-r--r-- | lib/bacon.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb index 3277503..af754d4 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -192,7 +192,7 @@ end class Proc def raise?(*exceptions) - exceptions << RuntimeError if exceptions.empty? + exceptions = [RuntimeError] if exceptions.empty? call # Only to work in 1.9.0, rescue with splat doesn't work there right now |