Ignore:
Timestamp:
2009-10-03T16:57:49+02:00 (16 years ago)
Author:
Gubaer
Message:

fixed #3625: "Upload" error (410) while fetching items for relation

File:
1 edited

Legend:

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

    r2228 r2240  
    277277     */
    278278    public static String explainGoneForUnknownPrimitive(OsmApiException e) {
    279         String msg = tr("<html>Uploading <strong>failed</strong> because a primitive you tried to<br>"
    280                 + "delete on the server is already deleted.<br>" + "<br>" + "The error message is:<br>" + "{0}"
     279        String msg = tr(
     280                "<html>The server reports that an object is deleted.<br>"
     281                + "<strong>Uploading failed</strong> if you tried to update or delete this object.<br> "
     282                + "<strong>Downloading failed</strong> if you tried to download this object.<br>"
     283                + "<br>"
     284                + "The error message is:<br>" + "{0}"
    281285                + "</html>", e.getMessage().replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;"));
    282286        return msg;
     
    290294     */
    291295    public static String explainException(Exception e) {
    292         if (e instanceof OsmTransferException)
    293             return explainOsmTransferException((OsmTransferException) e);
    294         return explainGeneric(e);
     296        String msg = "";
     297        if (e instanceof OsmTransferException) {
     298            msg = explainOsmTransferException((OsmTransferException) e);
     299        } else {
     300            msg = explainGeneric(e);
     301        }
     302        e.printStackTrace();
     303        return msg;
    295304    }
    296305}
Note: See TracChangeset for help on using the changeset viewer.