Skip to content

Commit 76ebca1

Browse files
Trevor Hartdefunkt
authored andcommitted
raise takes a string when re-raising as a different exception class.
1 parent 50fee9b commit 76ebca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resque/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def decode(object)
2929
begin
3030
::MultiJson.decode(object)
3131
rescue ::MultiJson::DecodeError => e
32-
raise DecodeException, e
32+
raise DecodeException, e.message, e.backtrace
3333
end
3434
end
3535

0 commit comments

Comments
 (0)