Permalink
Browse files

Merge pull request #41 from gumroad/master

raise the previous exception instead of instantiating it again
  • Loading branch information...
2 parents c615313 + 8b0472a commit 6326b0117b2115de19de19240c320817ba6142cb @zapnap committed Oct 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/resque_mailer.rb
View
@@ -45,8 +45,8 @@ def perform(action, *args)
logger.error "Unable to deliver email [#{action}]: #{ex}"
logger.error ex.backtrace.join("\n\t")
end
-
- raise ex.class, "Unable to deliver email: [#{ex.message}]", ex.backtrace
+
+ raise ex
end
end

0 comments on commit 6326b01

Please sign in to comment.