Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
feat(GitHubWebhookManager): add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Apr 25, 2023
1 parent d475045 commit 8e6dd05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github/lib/webhook/GitHubWebhookManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default class GitHubWebhookManager {
name: repository,
message: { content: `GitHub Notifications for **${repository}**: https://github.com/${repository}` }
})
.catch(() => null);
.catch((err) => this.client.logger.error(`(GitHubWebhookManager): Unable to create new thread`, err));

if (!thread) return; // No thread created means we cannot post a message
threadId = thread.id;
Expand Down

0 comments on commit 8e6dd05

Please sign in to comment.