Skip to content

Commit 1680df5

Browse files
committed
Merge branch 'some-fixes'
2 parents e8cccfd + 71094ed commit 1680df5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

GitGitGadget/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module.exports = async (context, req) => {
2121
status: 403,
2222
body: 'Not a valid GitHub webhook: ' + e,
2323
};
24-
context.done();
2524
return;
2625
}
2726

@@ -112,7 +111,6 @@ module.exports = async (context, req) => {
112111
context.res = {
113112
body: `Not a command: '${comment.body}'`,
114113
};
115-
context.done();
116114
return;
117115
}
118116

@@ -131,12 +129,10 @@ module.exports = async (context, req) => {
131129
};
132130
}
133131
} catch (e) {
134-
context.log('Caught exception ' + e);
132+
context.log('Caught exception ', e);
135133
context.res = {
136134
status: 500,
137-
body: 'Caught an error: ' + e,
135+
body: `Caught an error: ${e.message || JSON.stringify(e, null, 2)}`,
138136
};
139137
}
140-
141-
context.done();
142138
};

0 commit comments

Comments
 (0)