Changeset 4036 in josm


Ignore:
Timestamp:
2011-04-17T23:29:43+02:00 (10 years ago)
Author:
bastiK
Message:

detect and translate new api error

File:
1 edited

Legend:

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

    r4020 r4036  
    133133        String header = e.getErrorHeader();
    134134        String body = e.getErrorBody();
     135        if (body.equals("Your access to the API is temporarily suspended. Please log-in to the web interface to view the Contributor Terms. You do not need to agree, but you must view them.")) {
     136            return tr("<html>"
     137                    +"Your access to the API is temporarily suspended.<br>"
     138                    + "Please log-in to the web interface to view the Contributor Terms.<br>"
     139                    + "You do not need to agree, but you must view them."
     140                    + "</html>");
     141        }
    135142        String msg = null;
    136143        if (header != null) {
Note: See TracChangeset for help on using the changeset viewer.