Skip to content

Commit

Permalink
Add stack trace for generic exception in build threads
Browse files Browse the repository at this point in the history
  • Loading branch information
GregDomjan committed Jul 23, 2021
1 parent 48af679 commit 9d0acfc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/github/maven_nar/cpptasks/CCTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,11 @@ private BuildException runTargetPool(final CCTaskProgressMonitor monitor, BuildE
if (compileException == null && exception instanceof BuildException) {
compileException = (BuildException) exception;
} else {
log(cores[j].getName() + " " + exception + " ", Project.MSG_ERR);
log(cores[j].getName() + " " + exception + " ", Project.MSG_ERR);
final StackTraceElement[] stackTrace = exception.getStackTrace();
for (final StackTraceElement element : stackTrace) {
log(element.toString(),Project.MSG_DEBUG);
}
}
if (!this.relentless) {
cores[j] = null;
Expand Down

0 comments on commit 9d0acfc

Please sign in to comment.