Permalink
Browse files

Show which sequence it was waiting for when timing out.

  • Loading branch information...
1 parent 9ed49d6 commit d142ede58fce1eabec38222513191edf532a2bcb @hofmeister committed Jun 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/github/rnewson/couchdb/lucene/DatabaseIndexer.java
@@ -174,7 +174,7 @@ private void blockForLatest(final boolean staleOk) throws IOException, JSONExcep
wait(timeout);
timeout -= (System.currentTimeMillis() - start);
if (timeout <= 0) {
- throw new IOException("Search timed out.");
+ throw new IOException(String.format("Search timed out while waiting for %s (currently at: %s)",latest,pending_seq));
}
} catch (final InterruptedException e) {
throw new IOException("Search timed out.");

0 comments on commit d142ede

Please sign in to comment.