Skip to content

Commit c6f47f0

Browse files
aytdmBuzzardo
authored andcommitted
Fix to add missing argument
1 parent 5cc3b36 commit c6f47f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: custom-error/README.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Then, you can add a simple `/error` controller, like this one:
7777
[source,java]
7878
----
7979
@GetMapping("/error")
80-
public String error() {
80+
public String error(HttpServletRequest request) {
8181
String message = (String) request.getSession().getAttribute("error.message");
8282
request.getSession().removeAttribute("error.message");
8383
return message;

0 commit comments

Comments
 (0)