Author: sco...@google.com
Date: Thu Mar 12 22:47:42 2009
New Revision: 5009

Modified:
    trunk/user/src/com/google/gwt/junit/JUnitShell.java

Log:
When JUnitShell wraps exceptions from remote browsers, be sure to copy the  
cause.

Review by: jat (TBR)

Modified: trunk/user/src/com/google/gwt/junit/JUnitShell.java
==============================================================================
--- trunk/user/src/com/google/gwt/junit/JUnitShell.java (original)
+++ trunk/user/src/com/google/gwt/junit/JUnitShell.java Thu Mar 12 22:47:42  
2009
@@ -702,6 +702,7 @@
            AssertionFailedError newException = new AssertionFailedError(msg
                + "\n" + exception.getMessage());
            newException.setStackTrace(exception.getStackTrace());
+          newException.initCause(exception.getCause());
            exception = newException;
          } else {
            exception = new RuntimeException(msg, exception);

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to