summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-09-16 12:02:33 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-09-16 12:02:33 +0000
commit8656af729bc0df72311c12978facda55854d7fda (patch)
treeba79a57b1627e2c736f608ba81b4d45055fcd70c /src
parentee999ad0b17a464aded45a6ad8a2a218e4225cb1 (diff)
downloadvaadin-framework-8656af729bc0df72311c12978facda55854d7fda.tar.gz
vaadin-framework-8656af729bc0df72311c12978facda55854d7fda.zip
Exception stack traces now get properly printed to GWT hosted mode console.
svn changeset:14957/svn branch:6.4
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ClientExceptionHandler.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ClientExceptionHandler.java b/src/com/vaadin/terminal/gwt/client/ClientExceptionHandler.java
index 0f97e47d13..97b3e07c06 100644
--- a/src/com/vaadin/terminal/gwt/client/ClientExceptionHandler.java
+++ b/src/com/vaadin/terminal/gwt/client/ClientExceptionHandler.java
@@ -3,11 +3,14 @@
*/
package com.vaadin.terminal.gwt.client;
+import com.google.gwt.core.client.GWT;
+
public class ClientExceptionHandler {
public static void displayError(Throwable e) {
displayError(e.getClass().getName() + ": " + e.getMessage());
- e.printStackTrace();
+
+ GWT.log(e.getMessage(), e);
}
public static void displayError(String msg) {
@@ -16,8 +19,7 @@ public class ClientExceptionHandler {
if (console != null) {
console.error(msg);
- // } else {
- // System.err.println(msg);
+ GWT.log(msg);
}
}