Ticket #5575: OsbPlugin.patch
File OsbPlugin.patch, 985 bytes (added by , 14 years ago) |
---|
-
OsbPlugin.java
29 29 30 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 31 32 32 33 import javax.swing.ImageIcon; 33 34 import javax.swing.JOptionPane; 34 35 … … 188 189 } 189 190 } 190 191 } catch (Exception e) { 191 JOptionPane.showMessageDialog(Main.parent, e.getMessage()); 192 if (e instanceof java.net.UnknownHostException) { 193 String message = String.format(tr("Unknown Host: %s - Possibly there is no connection to the Internet.") 194 , e.getMessage()); 195 JOptionPane.showMessageDialog(Main.parent, message); 196 } else { 197 JOptionPane.showMessageDialog(Main.parent, e.getMessage()); 198 } 192 199 e.printStackTrace(); 193 200 } 194 201 }