Changeset 3264 in josm for trunk/src/org


Ignore:
Timestamp:
2010-05-19T19:44:37+02:00 (14 years ago)
Author:
stoecker
Message:

see #5052 - fix exception, thought there should be a useful error message nevertheless

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java

    r2017 r3264  
    339339
    340340    public static void audioMalfunction(Exception ex) {
     341        String msg = ex.getMessage();
     342        if(msg == null)
     343            msg = tr("unspecified reason");
     344        else
     345            msg = tr(msg);
    341346        JOptionPane.showMessageDialog(Main.parent,
    342                 "<html><p>" + tr(ex.getMessage()) + "</p></html>",
     347                "<html><p>" + msg + "</p></html>",
    343348                tr("Error playing sound"), JOptionPane.ERROR_MESSAGE);
    344349    }
Note: See TracChangeset for help on using the changeset viewer.