- Timestamp:
- 2017-02-21T22:58:57+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r11136 r11594 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.GraphicsEnvironment; 6 7 import java.io.File; 7 8 import java.io.FileNotFoundException; … … 334 335 } catch (Exception e) { 335 336 Main.error(e); 336 JOptionPane.showMessageDialog(Main.parent,337 tr("Error initializing test {0}:\n {1}", test.getClass()338 339 tr("Error"),340 JOptionPane.ERROR_MESSAGE);337 if (!GraphicsEnvironment.isHeadless()) { 338 JOptionPane.showMessageDialog(Main.parent, 339 tr("Error initializing test {0}:\n {1}", test.getClass().getSimpleName(), e), 340 tr("Error"), JOptionPane.ERROR_MESSAGE); 341 } 341 342 } 342 343 }
Note:
See TracChangeset
for help on using the changeset viewer.