diff options
author | Struan Donald <struan@exo.org.uk> | 2011-07-27 16:37:01 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-07-27 16:37:01 +0100 |
commit | d1af771b978e205900d8d3d47a57f34a8db51cf1 (patch) | |
tree | 7cfec9e1214240c588a61c38a46239337dccf92b /perllib/FixMyStreet/Geocode.pm | |
parent | 887e86d525993e83637679bbe238eb9fff2b7b9f (diff) |
die with a slightly useful message if we have no geocoding provider available
Diffstat (limited to 'perllib/FixMyStreet/Geocode.pm')
-rw-r--r-- | perllib/FixMyStreet/Geocode.pm | 1 |
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; |