Skip to content

Commit 9423fdf

Browse files
authored
Merge pull request #2 from javiersigler/patch-1
Show the original cause
2 parents 6040429 + 11f8feb commit 9423fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/com/cuisongliu/plugin/generator/mybatis/MybatisGenerator.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class MybatisGenerator extends DefaultTask {
8686

8787
myBatisGenerator.generate(new GradleProgressCallback(project.mbg.consoleable), contextsToRun, fullyqualifiedTables);
8888
} catch (Exception e) {
89-
throw new GradleException(e.getMessage());
89+
throw new GradleException(e.getMessage(), e);
9090
}
9191
for (String error : warnings) {
9292
println(error);

0 commit comments

Comments
 (0)