]> source.dussan.org Git - vaadin-framework.git/commitdiff
Clients side errors are not displayed in Prod. mode any more. #8544 35/635/1
authorJohn Ahlroos <john@vaadin.com>
Mon, 14 Jan 2013 12:52:38 +0000 (14:52 +0200)
committerJohn Ahlroos <john@vaadin.com>
Mon, 14 Jan 2013 12:52:38 +0000 (14:52 +0200)
Change-Id: I10914283a8e7e7babafa4c5b199cf708775a254a

client/src/com/vaadin/client/LayoutManager.java
client/src/com/vaadin/client/NullConsole.java

index 3cc7aebca65895b42a4a1f855e41ea62b9b62d4d..d7dce82b6536dd4ee924e4e3c6f85da7fee17b22 100644 (file)
@@ -413,9 +413,13 @@ public class LayoutManager {
 
             if (passes > 100) {
                 VConsole.log(LOOP_ABORT_MESSAGE);
-                VNotification.createNotification(VNotification.DELAY_FOREVER,
-                        connection.getUIConnector().getWidget()).show(
-                        LOOP_ABORT_MESSAGE, VNotification.CENTERED, "error");
+                if (ApplicationConfiguration.isDebugMode()) {
+                    VNotification.createNotification(
+                            VNotification.DELAY_FOREVER,
+                            connection.getUIConnector().getWidget())
+                            .show(LOOP_ABORT_MESSAGE, VNotification.CENTERED,
+                                    "error");
+                }
                 break;
             }
         }
index 52bf086d5db38d77abf3b7e43acbef72cc4a34bb..2b70454b9d26fd01db458bf109219a97fc10ce6d 100644 (file)
@@ -60,8 +60,7 @@ public class NullConsole implements Console {
 
     @Override
     public void error(Throwable e) {
-        // Borrow exception handling from VDebugConsole
-        VDebugConsole.handleError(e, this);
+        GWT.log(e.getMessage(), e);
     }
 
     @Override