I know I can print my own backtrace for an exception with
exception.backtrace.join("\n")
But when an uncaught exception goes all the way up to Rails handler,
Rails prints out a nice prettified stacktrace that''s a bit better than
this. It is shortened and abbreviated.
Is there any way I can call a method somewhere to use Rails''s same
logic
to shorten and prettify my own stacktrace in the same way before I print
it out myself?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---