altosui: Report error message back from libaltos
[fw/altos] / altosui / AltosCSVUI.java
index e1b6002dfa23235d08a1fb5ae4a92a537be5e15e..a212409ee83e3fc4f60aaa6d361a39cd87e15fc3 100644 (file)
@@ -99,7 +99,7 @@ public class AltosCSVUI
                                writer.close();
                        } catch (FileNotFoundException ee) {
                                JOptionPane.showMessageDialog(frame,
-                                                             file.getName(),
+                                                             ee.getMessage(),
                                                              "Cannot open file",
                                                              JOptionPane.ERROR_MESSAGE);
                        }