From: Jani Laakso Date: Fri, 2 Nov 2007 10:38:32 +0000 (+0000) Subject: Never *EVER* send exceptions only to GUI, *ALWAYS* send them also to console. Otherwi... X-Git-Tag: 6.7.0.beta1~5703 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6c899bf0dcbc671bfd4f7a0368045adde663a671;p=vaadin-framework.git Never *EVER* send exceptions only to GUI, *ALWAYS* send them also to console. Otherwise developer wont see exception because you can count on the fact that application user wont report it or even understand how to find it. These errors are even harder to see from GUI, USE CONSOLE. svn changeset:2675/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java b/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java index 33fab13123..bb4e76c099 100644 --- a/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java +++ b/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java @@ -486,6 +486,7 @@ public class CommunicationManager implements Paintable.RepaintRequestListener, out.close(); } catch (Throwable e) { + e.printStackTrace(); // Writes the error report to client OutputStreamWriter w = new OutputStreamWriter(out); PrintWriter err = new PrintWriter(w);