diff options
author | John Ahlroos <john@vaadin.com> | 2013-01-14 14:52:38 +0200 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2013-01-14 14:52:38 +0200 |
commit | d4c6057eba3393ebe2935dc68a52bedf493be290 (patch) | |
tree | e641244440ff9a6477e29ead3cf9621e6499919d /client | |
parent | cc9cc89865d7378a06497fa4ec08c30311b9f83a (diff) | |
download | vaadin-framework-d4c6057eba3393ebe2935dc68a52bedf493be290.tar.gz vaadin-framework-d4c6057eba3393ebe2935dc68a52bedf493be290.zip |
Clients side errors are not displayed in Prod. mode any more. #8544
Change-Id: I10914283a8e7e7babafa4c5b199cf708775a254a
Diffstat (limited to 'client')
-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 |