aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocoder/JsonGeocoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/geocoder/JsonGeocoder.java')
-rw-r--r--src/org/traccar/geocoder/JsonGeocoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/geocoder/JsonGeocoder.java b/src/org/traccar/geocoder/JsonGeocoder.java
index 3a0175dae..ed59a1d8d 100644
--- a/src/org/traccar/geocoder/JsonGeocoder.java
+++ b/src/org/traccar/geocoder/JsonGeocoder.java
@@ -64,7 +64,7 @@ public abstract class JsonGeocoder implements Geocoder {
}
return formattedAddress;
} else {
- String msg = "Empty address. " + getError(json);
+ String msg = "Empty address. Error: " + parseError(json);
if (callback != null) {
callback.onFailure(new GeocoderException(msg));
} else {
@@ -114,8 +114,8 @@ public abstract class JsonGeocoder implements Geocoder {
public abstract Address parseAddress(JsonObject json);
- protected String getError(JsonObject json) {
- return "";
+ protected String parseError(JsonObject json) {
+ return null;
}
}