From 76ebca137e366eea0679de68946c5cd8dfb82a6c Mon Sep 17 00:00:00 2001 From: Trevor Hart Date: Sun, 16 Oct 2011 22:51:28 -0400 Subject: [PATCH] raise takes a string when re-raising as a different exception class. --- lib/resque/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resque/helpers.rb b/lib/resque/helpers.rb index 70368b9e7..337fc416b 100644 --- a/lib/resque/helpers.rb +++ b/lib/resque/helpers.rb @@ -29,7 +29,7 @@ def decode(object) begin ::MultiJson.decode(object) rescue ::MultiJson::DecodeError => e - raise DecodeException, e + raise DecodeException, e.message, e.backtrace end end