aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Page.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/Page.pm')
-rw-r--r--perllib/Page.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm
index fe6a6e8cb..127fad11b 100644
--- a/perllib/Page.pm
+++ b/perllib/Page.pm
@@ -918,6 +918,9 @@ sub mapit_check_error {
return $location->{error};
}
my $island = $location->{coordsyst};
+ if (!$island) {
+ return _("Sorry, that appears to be a Crown dependency postcode, which we don't cover.");
+ }
if ($island eq 'I') {
return _("We do not cover Northern Ireland, I'm afraid, as our licence doesn't include any maps for the region.");
}