[Catalyst-dev] Patch for current_view & default_view not existing

Brad Lhotsky brad.lhotsky at gmail.com
Fri Aug 27 17:22:22 GMT 2010


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=3Dutf-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=3Dutf-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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log_view_failure.patch
Type: application/octet-stream
Size: 793 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst-dev/attachments/20100827/=
1305e02f/log_view_failure.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestAppWarnings.tar.gz
Type: application/x-gzip
Size: 883 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst-dev/attachments/20100827/=
1305e02f/TestAppWarnings.tar.bin


More information about the Catalyst-dev mailing list