add error message when not connected to node
[jSite2.git] / src / net / pterodactylus / jsite / gui / SwingInterface.java
index eef499b..cf6f4e1 100644 (file)
@@ -763,9 +763,8 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh
        private void addProject() {
                try {
                        core.createProject();
-               } catch (JSiteException nne1) {
-                       /* TODO - add i18n */
-                       JOptionPane.showMessageDialog(mainWindow, I18n.get(""), I18n.get(""), JOptionPane.ERROR_MESSAGE);
+               } catch (JSiteException jse1) {
+                       JOptionPane.showMessageDialog(mainWindow, I18n.get("mainWindow.error.notConnected.message"), I18n.get("mainWindow.error.notConnected.title"), JOptionPane.ERROR_MESSAGE);
                } catch (IOException e) {
                        /* TODO - add i18n */
                        JOptionPane.showMessageDialog(mainWindow, I18n.get(""), I18n.get(""), JOptionPane.ERROR_MESSAGE);