From d4c6057eba3393ebe2935dc68a52bedf493be290 Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Mon, 14 Jan 2013 14:52:38 +0200 Subject: [PATCH] Clients side errors are not displayed in Prod. mode any more. #8544 Change-Id: I10914283a8e7e7babafa4c5b199cf708775a254a --- client/src/com/vaadin/client/LayoutManager.java | 10 +++++++--- 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 -- 2.39.5