Skip to content

Commit 1163104

Browse files
committed
UITestCase.fail(String, Throwable): append the throwable as cause
1 parent 1e895cc commit 1163104

File tree

1 file changed

+1
-1
lines changed
  • tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util

1 file changed

+1
-1
lines changed

tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/UITestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static void fail(String message, Throwable e) {
115115
write(status, 0);
116116
} else
117117
e.printStackTrace();
118-
fail(message + ": " + e);
118+
throw new AssertionError(message, e);
119119
}
120120

121121
private static void indent(OutputStream output, int indent) {

0 commit comments

Comments
 (0)