mirror of
https://github.com/dani/vroom.git
synced 2024-06-26 17:43:29 +02:00
Fix rendering static assets when an error is detected
This commit is contained in:
parent
14b6298d77
commit
a018b2bf29
3
vroom.pl
3
vroom.pl
|
@ -2124,7 +2124,8 @@ app->hook(before_dispatch => sub {
|
||||||
$self->stash(config => $config);
|
$self->stash(config => $config);
|
||||||
|
|
||||||
# Check db is available
|
# Check db is available
|
||||||
if ($error){
|
# But don't error when user requests static assets
|
||||||
|
if ($error && @{$self->req->url->path->parts}[-1] !~ m/\.(css|js|png|woff2?|mp3|localize\/.*)$/){
|
||||||
return $self->render('error',
|
return $self->render('error',
|
||||||
msg => $self->l($error),
|
msg => $self->l($error),
|
||||||
err => $error,
|
err => $error,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user