Added exception to the stacktrace

This commit is contained in:
Marcin Grzejszczak
2019-01-23 14:08:20 +01:00
parent 0bcb4e8bc2
commit dd80be4646

View File

@@ -58,7 +58,7 @@ class TaskCollector implements ApplicationListener<ReleaserTask> {
.map(table1 ->
String.format("***** Project / Task : <%s/%s> ***** \nTask Description <%s>\nException Stacktrace \n\n%s",
table1.projectName, table1.taskCaption,
table1.taskDescription, Arrays
table1.taskDescription, table1.exception + "\n" + Arrays
.stream(table1.exception.getStackTrace())
.map(StackTraceElement::toString)
.collect(Collectors.joining("\n"))))