Skip to content

Commit e0579ef

Browse files
geroplroboquat
authored andcommitted
[server] GH: Send 401 with message on failed webhook
1 parent faa5332 commit e0579ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/ee/src/prebuilds/github-enterprise-app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class GitHubEnterpriseApp {
5757
}
5858
if (!user) {
5959
res.statusCode = 401;
60-
res.send();
60+
res.send("Unauthorized: Cannot find user.");
6161
span.finish();
6262
await this.webhookEvents.updateEvent(event.id, { status: "dismissed_unauthorized" });
6363
return;

0 commit comments

Comments
 (0)