Changeset 11984 in josm for trunk/src


Ignore:
Timestamp:
2017-04-23T14:45:06+02:00 (7 years ago)
Author:
stoecker
Message:

improve overpass API rate limit message, fix wrong timeout error message

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ExceptionDialogUtil.java

    r11921 r11984  
    362362        HelpAwareOptionPane.showOptionDialog(
    363363                Main.parent,
    364                 ExceptionUtil.explainClientTimeout(e),
     364                ExceptionUtil.explainGeneric(e),
    365365                tr("Communication with OSM server failed"),
    366366                JOptionPane.ERROR_MESSAGE,
     
    477477                explainClientTimeout(oae);
    478478                return;
    479             case 509:
     479            case 509: case 429:
    480480                explainBandwidthLimitExceeded(oae);
    481481                return;
  • trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java

    r11924 r11984  
    201201                final String errorPlusRest = ex.getMessage().split(errorIndicator)[1];
    202202                if (errorPlusRest != null) {
    203                     final String error = errorPlusRest.split("</")[0];
     203                    final String error = errorPlusRest.split("</")[0].replaceAll(".*::request_read_and_idx::","");
    204204                    ex.setErrorHeader(error);
    205205                }
Note: See TracChangeset for help on using the changeset viewer.