On Sat, Jul 6, 2013 at 8:32 AM, Josh Cheek <josh.cheek / gmail.com> wrote:

> On Sat, Jul 6, 2013 at 5:27 AM, Robert Klemme <shortcutter / googlemail.com>wrote:
>
>>
>>
>> On Fri, Jul 5, 2013 at 4:08 PM, Josh Cheek <josh.cheek / gmail.com> wrote:
>>
>>> I was thinking about how bad I am at reading error messages, and
>>> realized it could be useful to catch the exception and write it in a way
>>> that was easier for me to find the relevant information. So, came up with
>>> this proof of concept:
>>>
>>
>> But why go through those hoops and do it in at_exit?  You could simply
>> put "begin rescue end" around your main script.
>>
>>
> I like the idea that I could just require a gem and have my error output
> changed.
>
>
Also, some cases it's not clear how to do this. Say I wanted to put it in a
Rails app, that I run with the shotgun gem. The main script is in code I
don't control.

-Josh