Changeset 9486 in josm
- Timestamp:
- 2016-01-16T14:16:03+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/upload/UploadNotesTask.java
r9067 r9486 14 14 import org.openstreetmap.josm.data.notes.NoteComment; 15 15 import org.openstreetmap.josm.data.osm.NoteData; 16 import org.openstreetmap.josm.gui.ExceptionDialogUtil; 16 17 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 17 18 import org.openstreetmap.josm.gui.progress.ProgressMonitor; … … 118 119 } catch (Exception e) { 119 120 Main.error("Failed to upload note to server: " + note.getId()); 121 Main.error(e); 120 122 failedNotes.put(note, e); 121 123 } … … 130 132 noteData.updateNotes(updatedNotes); 131 133 if (!failedNotes.isEmpty()) { 132 Main.error("Some notes failed to upload");133 134 StringBuilder sb = new StringBuilder(); 134 135 for (Map.Entry<Note, Exception> entry : failedNotes.entrySet()) { … … 138 139 Main.error("Notes failed to upload: " + sb.toString()); 139 140 JOptionPane.showMessageDialog(Main.map, sb.toString(), tr("Notes failed to upload"), JOptionPane.ERROR_MESSAGE); 141 ExceptionDialogUtil.explainException(failedNotes.values().iterator().next()); 140 142 } 141 143 }
Note:
See TracChangeset
for help on using the changeset viewer.