Merge branch '2.1.x'

Closes gh-17212
This commit is contained in:
Andy Wilkinson 2019-06-17 10:45:42 +01:00
commit c62543b514
1 changed files with 1 additions and 2 deletions

View File

@ -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;