aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Page.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-10 19:52:24 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-10 19:52:24 +0000
commit73c9ca597e083354d0ea9843ebea319096ce5111 (patch)
tree4fa5864b35365e3a8dd5df7cc438b9530827abd5 /perllib/Page.pm
parent4ebfa74ad83b23c253090f682d9bbfa36e2c63f6 (diff)
parentcf347f8fbce0fefa4f8da01a867bfe523bbe5dc0 (diff)
Merge commit 'remotes/origin/migrate_from_osgb36_to_wgs84'
Diffstat (limited to 'perllib/Page.pm')
-rw-r--r--perllib/Page.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm
index b3f320f5d..fc7127a78 100644
--- a/perllib/Page.pm
+++ b/perllib/Page.pm
@@ -80,6 +80,9 @@ sub report_error {
my $trylater = sprintf(_('Please try again later, or <a href="mailto:%s">email us</a> to let us know.'), $contact_email);
my $somethingwrong = _("Sorry! Something's gone wrong.");
my $errortext = _("The text of the error was:");
+
+ my $msg_br = join '<br><br>', split m{\n}, $msg;
+
print "Status: 500\nContent-Type: text/html; charset=iso-8859-1\n\n",
qq(<html><head><title>$somethingwrong</title></head></html>),
q(<body>),
@@ -87,7 +90,7 @@ sub report_error {
qq(<p>$trylater</p>),
q(<hr>),
qq(<p>$errortext</p>),
- qq(<blockquote class="errortext">$msg</blockquote>),
+ qq(<blockquote class="errortext">$msg_br</blockquote>),
q(</body></html>);
}