From: Robert Klemme Date: 2013-07-06T19:27:50+09:00 Subject: Re: How do I rescue a program exception in an at_exit block? --001a11c2d96057b3bf04e0d543e5 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jul 5, 2013 at 4:08 PM, Josh Cheek 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. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --001a11c2d96057b3bf04e0d543e5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

--
remember.guy do |as, often| as.you_= can - without end
http://= blog.rubybestpractices.com/
--001a11c2d96057b3bf04e0d543e5--