X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FMisc%2FGeo.pm;h=168e4e959355f5b78b9b4a8059ae9e95814d1597;hb=ab9aa5b5d55eb7330b3435819663ef03538278e2;hp=7ab6d280d7db3d1bb5f037f93dc73b00b76a6451;hpb=85d05fd938528eb1d49a9a634575da6b19eb5b53;p=freeside.git diff --git a/FS/FS/Misc/Geo.pm b/FS/FS/Misc/Geo.pm index 7ab6d280d..168e4e959 100644 --- a/FS/FS/Misc/Geo.pm +++ b/FS/FS/Misc/Geo.pm @@ -334,8 +334,12 @@ sub standardize_uscensus { censustract => $result->censustract, }; } else { - die "can't parse address '".$result->address."'"; + die "Geocoding returned '".$result->address."', which does not seem to be a valid address.\n"; } + } elsif ( $result->match_level eq 'Tie' ) { + die "Geocoding was not able to identify a unique matching address.\n"; + } elsif ( $result->match_level ) { + die "Geocoding did not find a matching address.\n"; } else { warn Dumper($result) if $DEBUG; die $result->error_message;