2016-05-27 15:04:20 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset='utf-8'>
|
2018-01-17 21:03:03 +00:00
|
|
|
<title><%= data.name || data.message %></title>
|
2016-05-27 15:04:20 +00:00
|
|
|
<style><%- include style.css %></style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="wrapper">
|
2018-01-17 21:03:03 +00:00
|
|
|
<h1><%= data.name %></h1>
|
|
|
|
<h2><em><%= data.statusCode %></em> <%= data.message %></h2>
|
2016-05-27 15:04:20 +00:00
|
|
|
<%
|
|
|
|
// display all the non-standard properties
|
|
|
|
var standardProps = ['name', 'statusCode', 'message', 'stack'];
|
|
|
|
for (var prop in data) {
|
|
|
|
if (standardProps.indexOf(prop) == -1 && data[prop]) { %>
|
2018-01-17 21:03:03 +00:00
|
|
|
<div><b><%= prop %></b>: <%= data[prop] %></div>
|
2016-05-27 15:04:20 +00:00
|
|
|
<% }
|
|
|
|
}
|
|
|
|
if (data.stack) { %>
|
|
|
|
<pre id="stacktrace"><%- data.stack %></pre>
|
|
|
|
<% }
|
|
|
|
%>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|