Skip to content

Commit

Permalink
[JENKINS-15652] Include directory in assertion messages so it is poss…
Browse files Browse the repository at this point in the history
…ible to tell which project is broken.
  • Loading branch information
jglick committed May 20, 2013
1 parent ca27f06 commit ab27743
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -436,8 +436,8 @@ public R search(final int n, final Direction d) {
// assertion error, but we are so far unable to get to the bottom of this bug.
// but don't let this kill the loading the hard way
String msg = String.format(
"Assertion error: failing to load #%d %s: lo=%d,hi=%d,size=%d,size2=%d",
n, d, lo, hi, idOnDisk.size(), initialSize);
"JENKINS-15652 Assertion error: failing to load %s #%d %s: lo=%d,hi=%d,size=%d,size2=%d",
dir, n, d, lo, hi, idOnDisk.size(), initialSize);
LOGGER.log(Level.WARNING, msg,new Exception());
throw new ArrayIndexOutOfBoundsException(msg);
}
Expand All @@ -448,8 +448,8 @@ public R search(final int n, final Direction d) {
// assertion error, but we are so far unable to get to the bottom of this bug.
// but don't let this kill the loading the hard way
String msg = String.format(
"Assertion error: failing to load #%d %s: lo=%d,hi=%d,pivot=%d,size=%d (initial:lo=%d,hi=%d,size=%d)",
n, d, lo, hi, pivot, idOnDisk.size(), initialLo, initialHi, initialSize);
"JENKINS-15652Assertion error: failing to load %s #%d %s: lo=%d,hi=%d,pivot=%d,size=%d (initial:lo=%d,hi=%d,size=%d)",
dir, n, d, lo, hi, pivot, idOnDisk.size(), initialLo, initialHi, initialSize);
LOGGER.log(Level.WARNING, msg,new Exception());
throw new ArrayIndexOutOfBoundsException(msg);
}
Expand Down Expand Up @@ -489,8 +489,8 @@ public R search(final int n, final Direction d) {
// assertion error, but we are so far unable to get to the bottom of this bug.
// but don't let this kill the loading the hard way
LOGGER.log(Level.WARNING, String.format(
"Assertion error: failing to load #%d %s: lo=%d,hi=%d,size=%d (initial:lo=%d,hi=%d,size=%d)",
n,d,lo,hi,idOnDisk.size(), initialLo,initialHi,initialSize),new Exception());
"JENKINS-15652 Assertion error: failing to load %s #%d %s: lo=%d,hi=%d,size=%d (initial:lo=%d,hi=%d,size=%d)",
dir, n,d,lo,hi,idOnDisk.size(), initialLo,initialHi,initialSize),new Exception());
return null;
}
return getById(idOnDisk.get(lo-1));
Expand Down

0 comments on commit ab27743

Please sign in to comment.