vivek807 commented on code in PR #16821:
URL: https://github.com/apache/druid/pull/16821#discussion_r1707012447
##########
server/src/main/java/org/apache/druid/server/initialization/jetty/CustomExceptionMapper.java:
##########
@@ -30,14 +32,26 @@
@Provider
public class CustomExceptionMapper implements
ExceptionMapper<JsonMappingException>
{
+ private final ServerConfig config;
+
+ @Inject
+ public CustomExceptionMapper(ServerConfig config)
+ {
+ this.config = config;
+ }
+
@Override
public Response toResponse(JsonMappingException exception)
{
+ final ImmutableMap.Builder<Object, Object> builder = ImmutableMap.builder()
+ .put("error", "unable to process JSON input");
+
+ if (config.isShowDetailedJettyErrors()) {
Review Comment:
Updated, thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]