diff options
author | Leif Åstrand <leif@vaadin.com> | 2013-01-14 13:24:47 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-01-14 13:24:47 +0000 |
commit | cbe5abeb4c8221a56e116f445a6f054881eb6ce4 (patch) | |
tree | 1000487ed824dfaa0534e0a6c1f3851a935c69cb | |
parent | c62bca2dd8486d92567287ee86cedf1d47294c17 (diff) | |
parent | d4c6057eba3393ebe2935dc68a52bedf493be290 (diff) | |
download | vaadin-framework-cbe5abeb4c8221a56e116f445a6f054881eb6ce4.tar.gz vaadin-framework-cbe5abeb4c8221a56e116f445a6f054881eb6ce4.zip |
Merge "Clients side errors are not displayed in Prod. mode any more. #8544"
-rw-r--r-- | client/src/com/vaadin/client/LayoutManager.java | 10 | ||||
-rw-r--r-- | client/src/com/vaadin/client/NullConsole.java | 3 |
2 files changed, 8 insertions, 5 deletions
diff --git a/client/src/com/vaadin/client/LayoutManager.java b/client/src/com/vaadin/client/LayoutManager.java index 3cc7aebca6..d7dce82b65 100644 --- a/client/src/com/vaadin/client/LayoutManager.java +++ b/client/src/com/vaadin/client/LayoutManager.java @@ -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; } } diff --git a/client/src/com/vaadin/client/NullConsole.java b/client/src/com/vaadin/client/NullConsole.java index 52bf086d5d..2b70454b9d 100644 --- a/client/src/com/vaadin/client/NullConsole.java +++ b/client/src/com/vaadin/client/NullConsole.java @@ -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 |