File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ module.exports = async (context, req) => {
21
21
status : 403 ,
22
22
body : 'Not a valid GitHub webhook: ' + e ,
23
23
} ;
24
- context . done ( ) ;
25
24
return ;
26
25
}
27
26
@@ -112,7 +111,6 @@ module.exports = async (context, req) => {
112
111
context . res = {
113
112
body : `Not a command: '${ comment . body } '` ,
114
113
} ;
115
- context . done ( ) ;
116
114
return ;
117
115
}
118
116
@@ -131,12 +129,10 @@ module.exports = async (context, req) => {
131
129
} ;
132
130
}
133
131
} catch ( e ) {
134
- context . log ( 'Caught exception ' + e ) ;
132
+ context . log ( 'Caught exception ' , e ) ;
135
133
context . res = {
136
134
status : 500 ,
137
- body : ' Caught an error: ' + e ,
135
+ body : ` Caught an error: ${ e . message || JSON . stringify ( e , null , 2 ) } ` ,
138
136
} ;
139
137
}
140
-
141
- context . done ( ) ;
142
138
} ;
You can’t perform that action at this time.
0 commit comments