smartinez87/exception_notification — Issue #45: Undefined method message in background exception notification
Author: allspiritseve
Created: 2011-12-15 22:20:09+00:00
State: open

I'm getting an error when trying to send a background exception notification for delayed job. It appears the email view does not have a valid exception object, but I used a debugger and the exception passed was valid (and responded to message). Any idea what could be causing this?

```
Rendered /Users/cory/.rvm/gems/ruby-1.9.2-p290/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/background_exception_notification.text.erb (0.9ms)
ExceptionNotifier failed: ActionView::Template::Error: undefined method `message' for nil:NilClass
/Users/cory/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.0/lib/active_support/whiny_nil.rb:48:in `method_missing'
/Users/cory/.rvm/gems/ruby-1.9.2-p290/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/background_exception_notification.text.erb:3:in `___sers_cory__rvm_gems_ruby_______p____gems_exception_notification_______lib_exception_notifier_views_exception_notifier_background_exception_notification_text_erb___697306309495317308_70181760388820'
```