Ignore:
Timestamp:
2009-09-26T10:37:00+02:00 (17 years ago)
Author:
Gubaer
Message:

fixed #3564: i18n fail in error when uploading OSM data to a fresh server

File:
1 edited

Legend:

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

    r2097 r2189  
    133133
    134134    /**
     135     * Explains a {@see OsmApiException} which was thrown because a resource wasn't found
     136     * on the server
     137     *
     138     * @param e the exception
     139     */
     140    public static void explainNotFound(OsmApiException e) {
     141        JOptionPane.showMessageDialog(Main.parent, ExceptionUtil.explainNotFound(e), tr("Not Found"),
     142                JOptionPane.ERROR_MESSAGE);
     143    }
     144
     145    /**
    135146     * Explains a {@see UnknownHostException} which has caused an {@see OsmTransferException}.
    136147     * This is most likely happening when there is an error in the API URL or when
     
    216227                return;
    217228            }
     229            if (oae.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {
     230                explainNotFound(oae);
     231                return;
     232            }
     233
    218234        }
    219235        explainGeneric(e);
Note: See TracChangeset for help on using the changeset viewer.