fix(middlewares/errorhandler): Remove npm module and refactor for fcc use case
This commit is contained in:
committed by
mrugesh mohapatra
parent
550e1db9a4
commit
894a309723
58
server/views/dev-error.jade
Normal file
58
server/views/dev-error.jade
Normal file
@@ -0,0 +1,58 @@
|
||||
doctype html
|
||||
head
|
||||
title!= errorTitle
|
||||
style.
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 80px 100px;
|
||||
background: #ECE9E9 -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#ECE9E9));
|
||||
background: #ECE9E9 -moz-linear-gradient(top, #fff, #ECE9E9);
|
||||
background-repeat: no-repeat;
|
||||
color: #555;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
h1, h2 {
|
||||
font-size: 22px;
|
||||
color: #343434;
|
||||
}
|
||||
h1 em, h2 em {
|
||||
padding: 0 5px;
|
||||
font-weight: normal;
|
||||
}
|
||||
h1 {
|
||||
font-size: 60px;
|
||||
}
|
||||
h2 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
ul li {
|
||||
list-style: none;
|
||||
}
|
||||
#trace {
|
||||
margin-top: 10px;
|
||||
margin-left: 60px;
|
||||
}
|
||||
body
|
||||
#wrapper
|
||||
h1!= title
|
||||
h2
|
||||
em!= status
|
||||
| #{errorTitle}
|
||||
h2
|
||||
em User Message:
|
||||
| #{message}
|
||||
h2
|
||||
em Type:
|
||||
| #{type}
|
||||
h2
|
||||
em redirect to:
|
||||
a(href=redirectTo) #{redirectTo}
|
||||
h2
|
||||
em stack trace:
|
||||
ul#trace!= stack
|
||||
|
Reference in New Issue
Block a user