mirror of https://github.com/apache/cloudstack.git
ui: add custom error handling page
This makes sure we don't expose CloudStack stacktrace (if any) on the frontend
instead redirect to show an error handling page.
This closes #256
(cherry picked from commit 112cecc2d4)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
0cdb4b6108
commit
98a1059413
|
|
@ -77,4 +77,10 @@
|
|||
<url-pattern>*.html</url-pattern>
|
||||
<url-pattern>*.js</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<error-page>
|
||||
<exception-type>java.lang.Exception</exception-type>
|
||||
<location>/error.jsp</location>
|
||||
</error-page>
|
||||
|
||||
</web-app>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Apache CloudStack</title>
|
||||
<link rel="shortcut icon" href="images/cloud.ico" />
|
||||
</head>
|
||||
<body>
|
||||
<p>Oops, looks like CloudStack hit an error. Ask your CloudStack Administrator to look into it.</p>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue