aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Root.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-09-08 13:22:45 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-09-09 16:31:20 +0100
commit14f22b5148313adf809affd5d517c318c10550d9 (patch)
tree62b00db7498838a5cc5424ff2001d84ceea9a5ce /perllib/FixMyStreet/App/Controller/Root.pm
parent5f7b18c48999f171eed51653a1a25e51fe200587 (diff)
Better generic 403/404 pages.
Stop IDs being shown on 404 pages, provide a nicer message on 403 pages.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Root.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Root.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Root.pm b/perllib/FixMyStreet/App/Controller/Root.pm
index 88f480137..3d4c6a1ba 100644
--- a/perllib/FixMyStreet/App/Controller/Root.pm
+++ b/perllib/FixMyStreet/App/Controller/Root.pm
@@ -103,8 +103,8 @@ sub page_error_410_gone : Private {
sub page_error_403_access_denied : Private {
my ( $self, $c, $error_msg ) = @_;
- $c->stash->{template} = 'index.html';
- $c->stash->{error} = $error_msg;
+ $c->stash->{template} = 'errors/generic.html';
+ $c->stash->{message} = $error_msg || _("Sorry, you don't have permission to do that.");
$c->response->status(403);
}