if ( my $error = $@ ) {
$status = $r->call_exception($error);
if ( $status != OK ) {
- warn "caught model error: $error";
+ warn "caught authenticate error: $error";
return $r->debug ? $r->view_object->error( $r, $error ) : ERROR;
}
}
}
}
if ( !$r->{output} ) { # You might want to do it yourself
- return $r->view_object->process($r);
+ eval { $status = $r->view_object->process($r) };
+ if ( my $error = $@ ) {
+ $status = $r->call_exception($error);
+ if ( $status != OK ) {
+ warn "caught view error: $error";
+ return $r->debug ? $r->view_object->error( $r, $error ) : ERROR;
+ }
+ }
+ return $status;
}
else { return OK; }
}
=head1 THANK YOU
-Jesse Scheidlower, Jody Belka, Markus Ramberg, Mickael Joanne, Simon Flack and all the others who've helped.
+Jesse Scheidlower, Jody Belka, Markus Ramberg, Mickael Joanne, Simon Flack,
+Veljko Vidovic and all the others who've helped.
=head1 LICENSE