richpeck / exception_handler

Ruby on Rails Custom Error Pages
507 stars 72 forks source link

how to add stack trace to error email send by exception_handler? #84

Open CrazybutSolid opened 5 years ago

CrazybutSolid commented 5 years ago

(but not to the error page) thanks!

cenxky commented 4 years ago

@CrazybutSolid

You can easily achieve this by yourself by just adding below codes at the end of the file: app/views/exception_handler/mailers/new_exception.erb.

<div><pre><%= @exception.trace %></pre></div>