forked from koajs/error
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.html
54 lines (48 loc) · 936 Bytes
/
error.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<title>Error - <%- status %></title>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
<style>
body {
padding: 50px 80px;
font: 14px "Helvetica Neue", Helvetica, sans-serif;
}
h1, h2 {
margin: 0;
padding: 10px 0;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.2em;
font-weight: 200;
color: #aaa;
}
pre {
font-size: .8em;
}
</style>
</head>
<body>
<div id="error">
<h1>Error</h1>
<p>Looks like something broke!</p>
<% if (env === 'development') { %>
<h2>Message:</h2>
<pre>
<code>
<%- error %>
</code>
</pre>
<h2>Stack:</h2>
<pre>
<code>
<%- stack %>
</code>
</pre>
<% } %>
</div>
</body>
</html>