Skip to content

Commit

Permalink
Show errors even when Kotlin compiler could not be invoked
Browse files Browse the repository at this point in the history
Relates to: quarkusio#8708
  • Loading branch information
geoand authored and Gytis Trikleris committed Apr 22, 2020
1 parent 2a8c039 commit 526a2d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void compile(Set<File> filesToCompile, Context context) {
compilerArguments);

if (exitCode != ExitCode.OK && exitCode != ExitCode.COMPILATION_ERROR) {
throw new RuntimeException("Unable to invoke Kotlin compiler");
throw new RuntimeException("Unable to invoke Kotlin compiler. " + String.join("\n", messageCollector.getErrors()));
}

if (messageCollector.hasErrors()) {
Expand Down

0 comments on commit 526a2d6

Please sign in to comment.