Skip to content

Commit

Permalink
chore: fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed May 31, 2024
1 parent 7f15df7 commit 0c58c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/query-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function checkUserAccess(context: Context, username: string) {
} catch (e) {
console.log(JSON.stringify(e));
if (!!e && typeof e === "object" && "status" in e && e.status === 404) {
await context.logger.fatal(`User ${payload.comment.user.name} cannot request user ${username} as it is not a collaborator. ${e}`);
await context.logger.fatal(`User @${payload.comment.user.login} cannot request user ${username} as it is not a collaborator.`);
return false;
}
throw e;
Expand Down

0 comments on commit 0c58c30

Please sign in to comment.