Hi Mark
On 28/02/12 01:21, MARKSTOS via RT wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=75205>
>
> On Tue Feb 21 23:08:07 2012, RSAVAGE wrote:
>> Hi Folks
>>
>> In Application.pm V 4.50 line line 149 I think the call:
>>
>> $body = $self->$em( $error );
>> should be protected by an eval, or even better, Try::Tiny.
>
> When the main run mode dies, we call the error mode. If we trapped the
> death of the error mode, what would do then?
I think by using Try::Tiny the code can gracefully output a specific
error msg [1] and then die.
[1] Including run mode, method name, autoload status.
Show quoted text> I don't think we want to call error_mode() recursively, and don't want
> an error_error_mode().
No, we don't want recursion.
Show quoted text> Perhaps we should emulate Apache's behavior here, returning a page with
> text like this: "500. There was an internal server error when loading
> this page. Further, there was a problem loading error page."
Too vague if you ask me.
Show quoted text> Phasing in Try::Tiny is a good idea.
>
> I think this the error mode idea merits some on-list discussion to
> create a specific proposal to address it.
Yes. I suggest you forward this email to the list to get started, since
it should have enough info in it to orient the reader.
--
Ron Savage
http://savage.net.au/
Ph: 0421 920 622