Changeset 3534 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2010-09-17T10:29:14+02:00 (14 years ago)
Author:
bastiK
Message:

print errors to the console, as well

File:
1 edited

Legend:

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

    r3336 r3534  
    5858                            canLoad = true;
    5959                        } catch (IOException e) {
     60                            System.err.println(tr("Warning: Could not read tagging preset source: {0}", source));
    6061                            ExtendedDialog ed = new ExtendedDialog(Main.parent, tr("Error"),
    6162                                    new String[] {tr("Yes"), tr("No"), tr("Cancel")});
     
    8081                        } catch (IOException e) {
    8182                            // Should not happen, but at least show message
    82                             JOptionPane.showMessageDialog(Main.parent, tr("Could not read tagging preset source {0}", source));
     83                            String msg = tr("Could not read tagging preset source {0}", source);
     84                            System.err.println(msg);
     85                            JOptionPane.showMessageDialog(Main.parent, msg);
    8386                            return false;
    8487                        } catch (SAXParseException e) {
     
    106109
    107110                        if (errorMessage != null) {
     111                            System.err.println("Error: "+errorMessage);
    108112                            int result = JOptionPane.showConfirmDialog(Main.parent, new JLabel(errorMessage), tr("Error"),
    109113                                    JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.ERROR_MESSAGE);
Note: See TracChangeset for help on using the changeset viewer.