make sure seed and iteration are always logged, even if thrown exception is discarded upper in the call stack

This commit is contained in:
Dmitry Batrak
2015-11-06 11:28:53 +03:00
parent 25d74560ff
commit ac5f1e43b1
@@ -56,7 +56,9 @@ public class EditorStressTest extends AbstractEditorTest {
}
}
catch (Throwable t) {
throw new RuntimeException("Failed when run with seed=" + mySeed + " in iteration " + i, t);
String message = "Failed when run with seed=" + mySeed + " in iteration " + i;
System.out.println(message);
throw new RuntimeException(message, t);
}
}