File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,19 @@ extensions:
122122 - type : " value"
123123 value : " %_exec.pluginDir%/server/extension/error2.js"
124124
125+ dump/error2b :
126+ exec :
127+ service : " node"
128+ commands :
129+ - prog : " node"
130+ stdin :
131+ type : " body"
132+ stdout :
133+ type : " body"
134+ args :
135+ - type : " value"
136+ value : " %_exec.pluginDir%/server/extension/error2b.js"
137+
125138 dump/error3 :
126139 exec :
127140 service : " node"
Original file line number Diff line number Diff line change 1+ ( ( ) => {
2+ console . log ( JSON . stringify (
3+ {
4+ "code" : "custom.error" ,
5+ "err" : "custom err" , // this used to cause a parser error
6+ "error" : "custom error" ,
7+ "statuscode" : 402
8+ }
9+ ) )
10+ console . error ( "This error goes to STDERR" )
11+ // pass status code here
12+ process . exit ( 499 )
13+ } ) ( )
You can’t perform that action at this time.
0 commit comments