finalize_errors is in Context now (t/aggregate/live_component_controller_action_go...
[catagits/Catalyst-Runtime.git] / t / lib / TestAppOneView / Context.pm
CommitLineData
c034d9bf 1package TestAppOneView::Context;
2use Moose;
3extends 'Catalyst::Context';
4
5# Replace the very large HTML error page with
6# useful info if something crashes during a test
7sub finalize_error {
8 my $c = shift;
9
10 $c->next::method(@_);
11
12 $c->res->status(500);
13 $c->res->body( 'FATAL ERROR: ' . join( ', ', @{ $c->error } ) );
14}
15
161;
17