Commit ca479bb9 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

428: Show real error page instead of Whitelabel Error Page (OPENED)

Task-Url: search#428
parent 7274639e
...@@ -12,25 +12,21 @@ ...@@ -12,25 +12,21 @@
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>"> <div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<c:if test="${errorMsg!=null}"> <h1>${error} ${reason}</h1>
<em>Message</em>: ${errorMsg} <c:if test="${hideHelpText==null||hideHelpText==false}">
</p> <p>Please try to reproduce the steps that led to this error and notify the DARIAH-DE helpdesk if you suspect an issue with this service.</p>
</c:if> </c:if>
<c:if test="${errorDetail!=null}">
<div class="alert alert-${errorLevel==null ? 'error' : errorLevel}" role="alert">${errorDetail}</div> <ul>
</c:if> <li><a href="<s:url value='/' />"><i class="ti-home"></i></a></li>
<li><a href="<s:url value='/search/simple/' />"><s:message code="" /></a></li>
<c:if test="${hideHelpText==null||hideHelpText==false}"> <li><a href="<s:url value='/search/extended/' />"><s:message code="" /></a></li>
<p>Please try to reproduce the steps that led to this error and notify the DARIAH-DE helpdesk if the problem persists</p> </ul>
<pre style="display: none;">Failed URL: ${url}
Exception: ${exception.message}
<c:forEach items="${exception.stackTrace}" var="ste">
</div> </div>
</div> </div>
</div> </div>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<script type="text/javascript"> <script type="text/javascript">
var AppProperties = function() { var AppProperties = function() {
this.refreshViews = <c:out value="${_refreshViews}"/>; this.refreshViews = <c:out value="${_refreshViews==null ? true : _refreshViews}"/>;
this.refreshIntervalMs = 5000; this.refreshIntervalMs = 5000;
this.notificationsArea = "#notifications-area"; this.notificationsArea = "#notifications-area";
this.notificationsTimeoutMs = 5000; this.notificationsTimeoutMs = 5000;
Supports Markdown
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