aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2014-03-03 17:58:12 +0000
committerMatthew Somerville <matthew@mysociety.org>2014-03-12 17:46:10 +0000
commitd2ebd056a2bd0484959d47b763dc6918b5b35015 (patch)
tree5f9c8240fc33336da9d82d01b9c7b5114a2d42e7 /perllib
parent8b725b38bb6abf3b77e22c2f65f93fabfc92c645 (diff)
[Zurich] basic commandline tool for geocoder
Also add warning to Geocoder to pass on server error if you are running in development.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Geocode/Zurich.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Geocode/Zurich.pm b/perllib/FixMyStreet/Geocode/Zurich.pm
index 0fc84c0ef..7ba3d27ad 100644
--- a/perllib/FixMyStreet/Geocode/Zurich.pm
+++ b/perllib/FixMyStreet/Geocode/Zurich.pm
@@ -76,6 +76,7 @@ sub string {
$result = $soap->call($method, $security, $search, $count);
};
if ($@) {
+ warn $@ if FixMyStreet->config('STAGING_SITE');
return { error => 'The geocoder appears to be down.' };
}
$result = $result->result;