diff --git a/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/OverpassMapDataDao.java b/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/OverpassMapDataDao.java index de583b50f7..584be46ac7 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/OverpassMapDataDao.java +++ b/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/OverpassMapDataDao.java @@ -61,10 +61,14 @@ public synchronized void get(final String query, MapDataWithGeometryHandler hand } catch(OsmApiException e) { - if(e.getErrorCode() == 429) + if(e.getErrorCode() == 429) { throw new OsmTooManyRequestsException(e.getErrorCode(), e.getErrorTitle(), e.getDescription()); - else + } else if(e.getErrorCode() == 400) { + Log.e(TAG, "malformed query, caused Overpass to return error code 400: " + query); throw e; + } else { + throw e; + } } }