diff options
Diffstat (limited to 'src/main/java/org/javacs/CompileBatch.java')
-rw-r--r-- | src/main/java/org/javacs/CompileBatch.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/org/javacs/CompileBatch.java b/src/main/java/org/javacs/CompileBatch.java index 96ab36e..65e3145 100644 --- a/src/main/java/org/javacs/CompileBatch.java +++ b/src/main/java/org/javacs/CompileBatch.java @@ -96,7 +96,12 @@ public class CompileBatch { return Optional.ofNullable(el); } } - throw new RuntimeException("File " + uri + " isn't in batch " + roots); + // Somehow, uri was not in batch + var names = new StringJoiner(", "); + for (var r : roots) { + names.add(Parser.fileName(r.getSourceFile().toUri())); + } + throw new RuntimeException("File " + uri + " isn't in batch " + names); } public Optional<List<TreePath>> definitions(Element el) { |