UNPKG
catproxy
Version:
latest (1.2.16)
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
a node proxy or host change tools
github.com/jianxcao/catproxy
jianxcao/catproxy
catproxy
/
src
/
web
/
500.js
9 lines
(8 loc)
•
203 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
log
from
'../log'
;
export
default
function
(
err, req, res
) { log.
error
(
'发生错误了,'
, err.
message
); res.
status
(
500
); res.
render
(
'500'
, {
message
:
'发生错误了,'
+ err.
message
, }); }