Revert "Work around Framework regression in handling of null model values"
This reverts commit 5fc67c545c.
Closes gh-16991
This commit is contained in:
parent
7d59b78829
commit
13a7a52c71
|
|
@ -83,8 +83,7 @@ public class DefaultErrorAttributes implements ErrorAttributes {
|
|||
HttpStatus errorStatus = determineHttpStatus(error);
|
||||
errorAttributes.put("status", errorStatus.value());
|
||||
errorAttributes.put("error", errorStatus.getReasonPhrase());
|
||||
String message = determineMessage(error);
|
||||
errorAttributes.put("message", (message != null) ? message : "");
|
||||
errorAttributes.put("message", determineMessage(error));
|
||||
handleException(errorAttributes, determineException(error), includeStackTrace);
|
||||
return errorAttributes;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue