Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
raise takes a string when re-raising as a different exception class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Hart authored and defunkt committed Oct 21, 2011
1 parent 50fee9b commit 76ebca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/helpers.rb
Expand Up @@ -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

Expand Down

0 comments on commit 76ebca1

Please sign in to comment.