aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-20 09:38:05 +0300
committerGravatar Vitaly Takmazov2016-12-20 09:38:05 +0300
commite2f733c84d2e327151e0a8c9a984d4094e7fa89b (patch)
tree63fcbd54d6e1653c4effb7271a96f911fe66105a /juick-spring-www/src/main/java/com
parent03a03639514bfb586555a3367fd3ea58da0f2a94 (diff)
juick-spring-www: correct names for ErrorController templates
Diffstat (limited to 'juick-spring-www/src/main/java/com')
-rw-r--r--juick-spring-www/src/main/java/com/juick/www/controllers/ErrorController.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-spring-www/src/main/java/com/juick/www/controllers/ErrorController.java b/juick-spring-www/src/main/java/com/juick/www/controllers/ErrorController.java
index a3e697b4..57a34076 100644
--- a/juick-spring-www/src/main/java/com/juick/www/controllers/ErrorController.java
+++ b/juick-spring-www/src/main/java/com/juick/www/controllers/ErrorController.java
@@ -21,19 +21,19 @@ public class ErrorController {
@ExceptionHandler(HttpBadRequestException.class)
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public String badRequest() {
- return "layout/error";
+ return "views/error";
}
@ExceptionHandler(HttpForbiddenException.class)
@ResponseStatus(value = HttpStatus.FORBIDDEN)
public String forbidden() {
- return "layout/error";
+ return "views/error";
}
@ExceptionHandler(HttpNotFoundException.class)
@ResponseStatus(value = HttpStatus.NOT_FOUND)
public String notFound() {
- return "layout/error";
+ return "views/error";
}
@ExceptionHandler(Throwable.class)
@@ -44,6 +44,6 @@ public class ErrorController {
String errorMessage = (throwable != null ? throwable.getMessage() : "Unknown error");
model.addAttribute("errorMessage", errorMessage);
- return "layout/error";
+ return "views/error";
}
}