aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-07-27 16:37:01 +0100
committerStruan Donald <struan@exo.org.uk>2011-07-27 16:37:01 +0100
commitd1af771b978e205900d8d3d47a57f34a8db51cf1 (patch)
tree7cfec9e1214240c588a61c38a46239337dccf92b /perllib/FixMyStreet
parent887e86d525993e83637679bbe238eb9fff2b7b9f (diff)
die with a slightly useful message if we have no geocoding provider available
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Geocode.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Geocode.pm b/perllib/FixMyStreet/Geocode.pm
index 4ae3df368..d7c416fb5 100644
--- a/perllib/FixMyStreet/Geocode.pm
+++ b/perllib/FixMyStreet/Geocode.pm
@@ -43,6 +43,7 @@ sub string {
if FixMyStreet->config('BING_MAPS_API_KEY');
return FixMyStreet::Geocode::Google::string($s, $c, $params)
if FixMyStreet->config('GOOGLE_MAPS_API_KEY');
+ die "No geocoding provider configured";
}
1;