Better exception message
This commit is contained in:
@@ -3,6 +3,7 @@ package org.springframework.cloud.release.internal.post;
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -95,7 +96,9 @@ public class PostReleaseActions implements Closeable {
|
||||
List<String> exceptionMessages = projectAndExceptions.stream()
|
||||
.filter(ProjectAndException::hasException)
|
||||
.map(e -> "Project [" + e.key + "] for url [" + e.url + "] "
|
||||
+ "has exception [" + NestedExceptionUtils.getMostSpecificCause(e.ex) + "]")
|
||||
+ "has exception [" + Arrays
|
||||
.toString(NestedExceptionUtils.getMostSpecificCause(e.ex)
|
||||
.getStackTrace()) + "]")
|
||||
.collect(Collectors.toList());
|
||||
if (!exceptionMessages.isEmpty()) {
|
||||
log.warn("Exceptions were found while updating samples");
|
||||
|
||||
Reference in New Issue
Block a user