Skip to content

Commit b2b9196

Browse files
[MCOMPILER-574] Propagate cause of exception in AbstractCompilerMojo
1 parent 6d2ce5a commit b2b9196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ public void execute() throws MojoExecutionException, CompilationFailureException
720720
try {
721721
compiler = compilerManager.getCompiler(compilerId);
722722
} catch (NoSuchCompilerException e) {
723-
throw new MojoExecutionException("No such compiler '" + e.getCompilerId() + "'.");
723+
throw new MojoExecutionException("No such compiler '" + e.getCompilerId() + "'.", e);
724724
}
725725

726726
// -----------toolchains start here ----------------------------------

0 commit comments

Comments
 (0)