Skip to content

Commit 469db7a

Browse files
committed
Discard attempts to log exceptions after an initial exception is logged
1 parent 302bf6b commit 469db7a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

BevoTest/src/edu/utexas/cs/bevotest/BevoTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -959,9 +959,11 @@ protected void tearingDown() throws IllegalStateException {
959959
}
960960

961961
protected void caught(final Throwable t) {
962-
//assert caughtValue == null;
963-
caughtValue = t;
964-
setStatus(Status.COMPLETE_ABNORMAL);
962+
if (caughtValue == null) {
963+
caughtValue = t;
964+
setStatus(Status.COMPLETE_ABNORMAL);
965+
}
966+
// silently discard subsequent exceptions
965967
}
966968

967969
protected void timedOut(final StackTraceElement[] stackTrace) {

0 commit comments

Comments
 (0)