Skip to content

Commit c62543b

Browse files
committed
Merge branch '2.1.x'
Closes gh-17212
2 parents ece8703 + 13a7a52 commit c62543b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ public Map<String, Object> getErrorAttributes(ServerRequest request, boolean inc
8888
HttpStatus errorStatus = determineHttpStatus(error, responseStatusAnnotation);
8989
errorAttributes.put("status", errorStatus.value());
9090
errorAttributes.put("error", errorStatus.getReasonPhrase());
91-
String message = determineMessage(error, responseStatusAnnotation);
92-
errorAttributes.put("message", (message != null) ? message : "");
91+
errorAttributes.put("message", determineMessage(error, responseStatusAnnotation));
9392
errorAttributes.put("requestId", request.exchange().getRequest().getId());
9493
handleException(errorAttributes, determineException(error), includeStackTrace);
9594
return errorAttributes;

0 commit comments

Comments
 (0)