Mailing List Archive

Patch for current_view & default_view not existing
So without the patch you get this:
[info] *** Request 1 (0.025/s) [28258] [Fri Aug 27 11:08:43 2010] ***
[debug] "GET" request for "/" from "137.187.162.84"
[debug] Path is "/"
[error] Caught exception in dns::monitor::Controller::Root->end
"Catalyst::Action::RenderView could not find a view to forward to."
[debug] Response Code: 500; Content-Type: text/html; charset=utf-8;
Content-Length: 12665
[info] Request took 0.063976s (15.631/s)

The "error" just says "no view to forward to." with the patch, you
get a warning:

[info] *** Request 1 (0.020/s) [31170] [Fri Aug 27 11:36:27 2010] ***
[debug] "GET" request for "/" from "137.187.162.84"
[debug] Path is "/"
[warn] Attempted to use view 'dns::monitor::View::View::Mason', but
does not exist
[error] Caught exception in dns::monitor::Controller::Root->end
"Catalyst::Action::RenderView could not find a view to forward to."
[debug] Response Code: 500; Content-Type: text/html; charset=utf-8;
Content-Length: 12744
[info] Request took 0.037013s (27.018/s)

If you untar the TestAppWarnings.tar.gz inside the t/ directory you get:

live_warnings.t
lib/TestAppWarnings.pm
lib/TestAppWarnings/Controller/Root.pm

It tests for the warning message to the logger for non-existant views.

--
Brad Lhotsky
Re: Patch for current_view & default_view not existing [ In reply to ]
On 27 Aug 2010, at 18:22, Brad Lhotsky wrote:

> So without the patch you get this:
> [

Thanks for the patch!

Applied with some changes as r13626.

Cheers
t0m


_______________________________________________
Catalyst-dev mailing list
Catalyst-dev@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev