add verbosity on failure

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1206783 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-11-27 17:52:39 +00:00
parent 516f1a6195
commit 60d9125050
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,8 @@ public class TestSearcherManager extends ThreadedIndexingAndSearchingTestCase {
} catch (AlreadyClosedException e) {
// expected
} catch (Throwable e) {
System.out.println("FAIL: unexpected exc");
e.printStackTrace(System.out);
exc[0] = e;
// use success as the barrier here to make sure we see the write
success.set(false);