I think sri meant "Mojo::Pg does not actually emit an error event".

Anyhow...

You should handle the error somehow. If you don't want to, then the best 
strategy is simply to "die $err if $err;". That way, the error will 
propagate correctly and result in a 500 page.

By handling, I mean checking if you can continue in your app, doing 
something else.


On Sunday, December 14, 2014 2:36:21 PM UTC+1, sri wrote:
>
> I was hoping that I could handle this error through the error event (as in 
>> Mojo::UserAgent when the error is not bound to a tx), but it seems not 
>> working:
>>
>
> Mojo::UserAgent does not actually emit an error event.
>
> --
> sebastian 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to