Changeset 3023 in josm


Ignore:
Timestamp:
2010-02-19T14:03:42+01:00 (15 years ago)
Author:
bastiK
Message:

translate misleading server message (see #4556)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java

    r2862 r3023  
    306306        String apiUrl = OsmApi.getOsmApi().getBaseUrl();
    307307        String message = tr("The OSM server ''{0}'' reported a bad request.<br>", apiUrl);
    308         if (e.getErrorHeader() != null && e.getErrorHeader().startsWith("The maximum bbox")) {
     308        if (e.getErrorHeader() != null &&
     309                (e.getErrorHeader().startsWith("The maximum bbox") ||
     310                e.getErrorHeader().startsWith("You requested too many nodes"))) {
    309311            message += "<br>"
    310312                + tr("The area you tried to download is too big or your request was too large."
Note: See TracChangeset for help on using the changeset viewer.