diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm index 3ef0410a9..6014faac3 100644 --- a/perllib/FixMyStreet/App/Controller/Reports.pm +++ b/perllib/FixMyStreet/App/Controller/Reports.pm @@ -68,8 +68,11 @@ sub index : Path : Args(0) { $c->stash->{open} = $j->{open}; }; if ($@) { - $c->stash->{message} = _("There was a problem showing the All Reports page. Please try again later.") . ' ' . - sprintf(_('The error was: %s'), $@); + $c->stash->{message} = _("There was a problem showing the All Reports page. Please try again later."); + if ($c->config->{STAGING_SITE}) { + $c->stash->{message} .= '</p><p>Perhaps the bin/update-all-reports script needs running.</p><p>' + . sprintf(_('The error was: %s'), $@); + } $c->stash->{template} = 'errors/generic.html'; return; } |