Skip to content

Commit

Permalink
Fix BasicErrorController include parameter parsing
Browse files Browse the repository at this point in the history
This commit fixes an error in BasicErrorController where the wrong
property was referenced for binding error inclusion.

See gh-21702
  • Loading branch information
Aurdo authored and scottfrederick committed Jun 8, 2020
1 parent b71bab2 commit e2e52a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected boolean isIncludeMessage(HttpServletRequest request, MediaType produce
* @return if the errors attribute should be included
*/
protected boolean isIncludeBindingErrors(HttpServletRequest request, MediaType produces) {
switch (getErrorProperties().getIncludeMessage()) {
switch (getErrorProperties().getIncludeBindingErrors()) {
case ALWAYS:
return true;
case ON_PARAM:
Expand Down

0 comments on commit e2e52a1

Please sign in to comment.