]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8073 display custom html page in case of highlevel 500 error 1256/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 15 Sep 2016 09:01:59 +0000 (11:01 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 16 Sep 2016 06:56:24 +0000 (08:56 +0200)
server/sonar-web/src/main/webapp/WEB-INF/web.xml

index e0bd48e3257b71dbaec84414491addfcc1313db3..ab60f08440ab5916a73d9e12c4bc344563c6315c 100644 (file)
     <url-pattern>/*</url-pattern>
   </filter-mapping>
 
+  <error-page>
+    <error-code>500</error-code>
+    <location>/500.html</location>
+  </error-page>
+
   <servlet>
     <servlet-name>static</servlet-name>
     <servlet-class>org.sonar.server.plugins.StaticResourcesServlet</servlet-class>