From: John Ahlroos Date: Mon, 14 Jan 2013 12:52:38 +0000 (+0200) Subject: Clients side errors are not displayed in Prod. mode any more. #8544 X-Git-Tag: 7.0.0.rc1~21^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d4c6057eba3393ebe2935dc68a52bedf493be290;p=vaadin-framework.git Clients side errors are not displayed in Prod. mode any more. #8544 Change-Id: I10914283a8e7e7babafa4c5b199cf708775a254a --- 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