Skip to content

Commit ad0a14c

Browse files
committed
fix(core): show correct message if no handler request
1 parent 13084de commit ad0a14c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/net/bndy/wf/interceptors/AuthenticationInterceptor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ public class AuthenticationInterceptor extends HandlerInterceptorAdapter {
2424
private Logger logger = LoggerFactory.getLogger(this.getClass());
2525

2626
@Override
27-
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
28-
throws Exception {
27+
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {
2928

3029
// permission checking
3130
User currentUser = ApplicationContext.getCurrentUser();

src/main/resources/templates/error.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
<div class="box">
1111
<div class="box-body">
1212
<img class="logo" src="/static/assets/img/logo.png" />
13-
<h4 th:utext="${message}"></h4>
13+
<h4 th:utext="${error}" th:if="${error!=null}"></h4>
14+
<h4 th:utext="${message}" th:if="${error==null}"></h4>
1415
<br />
1516
<div th:inline="text" style="display:none;" th:if="${exception!=null}">
1617
Failed URL: [[${url}]] <br />

0 commit comments

Comments
 (0)