From e2f733c84d2e327151e0a8c9a984d4094e7fa89b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 20 Dec 2016 09:38:05 +0300 Subject: juick-spring-www: correct names for ErrorController templates --- .../src/main/java/com/juick/www/controllers/ErrorController.java | 8 ++++---- 1 file 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"; } } -- cgit v1.2.3