Merge branch 'develop' of 10.10.31.70:/ervu-eks into develop
This commit is contained in:
commit
267d441f69
2 changed files with 10 additions and 4 deletions
|
|
@ -8,6 +8,7 @@ import java.util.Date;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
|
|
@ -81,13 +82,15 @@ public class ConfigExecutorService {
|
|||
catch (HttpClientErrorException e) {
|
||||
|
||||
if (e.getStatusCode() == HttpStatus.BAD_REQUEST) {
|
||||
Map<String, String> responseMap = new Gson().fromJson(e.getResponseBodyAsString(),
|
||||
new TypeToken<Map<String, String>>() {
|
||||
Map<String, Object> responseMap = new Gson().fromJson(e.getResponseBodyAsString(),
|
||||
new TypeToken<Map<String, Object>>() {
|
||||
}.getType()
|
||||
);
|
||||
|
||||
String details = responseMap.get("details");
|
||||
throw new ConfigExecutorException(details);
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, String> details = (Map<String, String>) responseMap.get("details");
|
||||
String detailsStr = String.join("\n", details.values());
|
||||
throw new ConfigExecutorException(detailsStr);
|
||||
}
|
||||
else {
|
||||
throw new RuntimeException(
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
configDirectory: C:\work\ervu-eks\config\cde-xml
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue