Skip to content

Commit

Permalink
Show which sequence it was waiting for when timing out.
Browse files Browse the repository at this point in the history
  • Loading branch information
hofmeister committed Jun 8, 2011
1 parent 9ed49d6 commit d142ede
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -174,7 +174,7 @@ private void blockForLatest(final boolean staleOk) throws IOException, JSONExcep
wait(timeout); wait(timeout);
timeout -= (System.currentTimeMillis() - start); timeout -= (System.currentTimeMillis() - start);
if (timeout <= 0) { 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) { } catch (final InterruptedException e) {
throw new IOException("Search timed out."); throw new IOException("Search timed out.");
Expand Down

0 comments on commit d142ede

Please sign in to comment.