package Catalyst::Plugin::Test::Errors;
use strict;
+use NEXT;
sub error {
my $c = shift;
if ( $_[0] =~ /^(Unknown resource|No default action defined)/ ) {
$c->response->status(404);
}
-
+
if ( $_[0] =~ /^Couldn\'t forward/ ) {
$c->response->status(404);
- }
+ }
if ( $_[0] =~ /^Caught exception/ ) {
$c->response->status(500);