From d1af771b978e205900d8d3d47a57f34a8db51cf1 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 27 Jul 2011 16:37:01 +0100 Subject: die with a slightly useful message if we have no geocoding provider available --- perllib/FixMyStreet/Geocode.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perllib/FixMyStreet/Geocode.pm') 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; -- cgit v1.2.3