Support new mojolicious error template
This commit is contained in:
1 parent
3495571029
commit
0d419c9ecd
1 file changed
+3
-7
@@ -77,14 +77,10 @@ sub _render {
|
|||||||
|
|
||||||
# Error
|
# Error
|
||||||
unless ($ok) {
|
unless ($ok) {
|
||||||
my $e = $self->tt->error;
|
|
||||||
|
|
||||||
if ($e =~ m/not found/) {
|
|
||||||
$c->app->log->error(qq/Template "$t" missing or not readable./);
|
|
||||||
$c->render_not_found;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
my $e = Mojo::Exception->new(
|
||||||
|
$self->tt->error.'',
|
||||||
|
$self->tt->service->process(defined $inline ? \$inline : $path));
|
||||||
$$output = '';
|
$$output = '';
|
||||||
$c->app->log->error(qq/Template error in "$t": $e/);
|
$c->app->log->error(qq/Template error in "$t": $e/);
|
||||||
$c->render_exception($e);
|
$c->render_exception($e);
|
||||||
|
|||||||
Reference in new issue
Block a user