diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-07-18 17:29:09 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-07-18 17:29:09 +0100 |
commit | 069800e2fdf9b130e01774bc208ff9a060b18544 (patch) | |
tree | f4676f6b81c1a7d2ff905916b450afe84bc53c3b | |
parent | 0bc2183e1d3b8cca7fab6ff87016c1ada63522a3 (diff) |
Show dev message about script that might need to be run.
-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; } |