Browse Source

Merge branch '2.1.x'

Closes gh-17212
pull/17216/head
Andy Wilkinson 7 years ago
parent
commit
c62543b514
  1. 3
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/DefaultErrorAttributes.java

3
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/DefaultErrorAttributes.java

@ -88,8 +88,7 @@ public class DefaultErrorAttributes implements ErrorAttributes { @@ -88,8 +88,7 @@ public class DefaultErrorAttributes implements ErrorAttributes {
HttpStatus errorStatus = determineHttpStatus(error, responseStatusAnnotation);
errorAttributes.put("status", errorStatus.value());
errorAttributes.put("error", errorStatus.getReasonPhrase());
String message = determineMessage(error, responseStatusAnnotation);
errorAttributes.put("message", (message != null) ? message : "");
errorAttributes.put("message", determineMessage(error, responseStatusAnnotation));
errorAttributes.put("requestId", request.exchange().getRequest().getId());
handleException(errorAttributes, determineException(error), includeStackTrace);
return errorAttributes;

Loading…
Cancel
Save