We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 466964c commit 944f23eCopy full SHA for 944f23e
1 file changed
rewrite-java/src/main/java/org/openrewrite/java/internal/template/JavaTemplateParser.java
@@ -276,7 +276,7 @@ private JavaSourceFile compileTemplate(@Language("java") String stub) {
276
.findFirst()
277
.filter(JavaSourceFile.class::isInstance) // Filters out ParseErrors
278
.map(JavaSourceFile.class::cast)
279
- .orElseThrow(() -> new IllegalArgumentException("Could not parse as Java"));
+ .orElseThrow(() -> new IllegalArgumentException("Could not parse as Java:\n" + stub));
280
}
281
282
/**
0 commit comments