Skip to content

Commit 270adac

Browse files
authored
Merge pull request #47243 from gsmet/add-more-context-jandex
Add a bit more context when we can't read Jandex index
2 parents b97c209 + 0d6feed commit 270adac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/deployment/src/main/java/io/quarkus/deployment/index/IndexingUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,17 +289,17 @@ public Index apply(PathVisit visit) {
289289
try {
290290
if (reader.getIndexVersion() < REQUIRED_INDEX_VERSION) {
291291
log.warnf(
292-
"Re-indexing %s - at least Jandex 2.1 must be used to index an application dependency",
293-
visit.getPath());
292+
"Re-indexing %s:%s - at least Jandex 2.1 must be used to index an application dependency",
293+
visit.getRoot(), visit.getPath());
294294
return null;
295295
}
296296
return reader.read();
297297
} catch (UnsupportedVersion e) {
298298
throw new UnsupportedVersion(
299-
"Can't read Jandex index from " + visit.getPath() + ": " + e.getMessage());
299+
"Can't read Jandex index from " + visit.getRoot() + ":" + visit.getPath() + ": " + e.getMessage());
300300
}
301301
} catch (IOException e) {
302-
throw new UncheckedIOException("Can't read Jandex index from " + visit.getPath(), e);
302+
throw new UncheckedIOException("Can't read Jandex index from " + visit.getRoot() + ":" + visit.getPath(), e);
303303
}
304304
}
305305
}

0 commit comments

Comments
 (0)