Commit 07412603 authored by Matija Obreza's avatar Matija Obreza

Display error message in request/personal

parent f371da35
...@@ -145,6 +145,7 @@ public class RequestController extends BaseController { ...@@ -145,6 +145,7 @@ public class RequestController extends BaseController {
requestService.initiateRequest(requestInfo, selectionBean.copy()); requestService.initiateRequest(requestInfo, selectionBean.copy());
} catch (final RequestException e) { } catch (final RequestException e) {
_logger.warn(e.getMessage()); _logger.warn(e.getMessage());
model.addAttribute("error", e);
return start(model); return start(model);
} }
......
...@@ -13,7 +13,11 @@ ...@@ -13,7 +13,11 @@
<%@include file="/WEB-INF/jsp/content/include/blurp-display.jsp"%> <%@include file="/WEB-INF/jsp/content/include/blurp-display.jsp"%>
<c:if test="${error ne null}">
<div class="alert alert-error">
<c:out value="e.message" />
</div>
</c:if>
<c:if test="${smta ne null and smta ne true}"> <c:if test="${smta ne null and smta ne true}">
<div class="alert alert-warning"> <div class="alert alert-warning">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment