[Catalyst] Confused: how to handle system-level errors
with fallback pages
Stuart Watt
swatt at infobal.com
Tue Aug 31 13:27:44 GMT 2010
On 8/31/2010 6:03 AM, Eden Cardim wrote:
> Have you read Catalyst::Manual::Cookbook?
Yes - that was the first place I looked. Obviously.
As far as I can tell, from observed behaviour and from inspecting the =
code, an error in the prepare phase does not generate any response. I =
simply get an empty reply. I have checked this using curl as well as a =
browser. Errors later on seem to work fine.
The Catalyst::Action dispatch method does use the execute wrapper. =
However, I can find no error protection for the prepare phase. Since =
this issue is caused by a plugin failing during that phase, I get no =
error display through the browser. Tried from curl, I get:
> C:\workspace\ARM>curl http://localhost:3000/index
> curl: (52) Empty reply from server
I suggest this is a serious issue, but I cannot claim to have a strong =
enough grasp of the overall architecture to suggest how to resolve it =
successfully.
--S
Stuart Watt
ARM Product Developer
Information Balance
On 8/31/2010 6:03 AM, Eden Cardim wrote:
>>>>>> "Stuart" =3D=3D Stuart Watt<swatt at infobal.com> writes:
> Stuart> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Stuart> Transitional//EN"> I have a timing/configuration issue, and
> Stuart> any pointers would be welcome.
>
> Stuart> The problem: how to handle configuration/system errors
> Stuart> by fallback to an error page.
>
> [snip]
>
> Stuart> I could just be missing some documentation: maybe this
> Stuart> is covered but I haven't been able to find it.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100831/41c49=
3d5/attachment.htm
More information about the Catalyst
mailing list