Skip to content

Commit

Permalink
ISPN-12873 Fix empty XML from the REST cache config endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tristantarrant authored and pruivo committed Apr 1, 2021
1 parent e3762bd commit ad5bbec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ private CompletionStage<RestResponse> getCacheConfig(RestRequest request) {
try (ConfigurationWriter writer = ConfigurationWriter.to(entity).withType(accept).build()) {
registry.serialize(writer, null, Collections.singletonMap(cacheName, cacheConfiguration));
} catch (Exception e) {
return CompletableFuture.completedFuture(responseBuilder.status(INTERNAL_SERVER_ERROR).build());
return CompletableFuture.completedFuture(responseBuilder.status(INTERNAL_SERVER_ERROR).entity(Util.getRootCause(e)).build());
}
responseBuilder.entity(entity);
}
Expand Down

0 comments on commit ad5bbec

Please sign in to comment.