Skip to content

Commit

Permalink
refactor(GitHub Trigger Node): Stop reporting to Sentry permission er…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Oct 30, 2023
1 parent ea5cd31 commit 784b433
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/Github/GithubTrigger.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,15 @@ export class GithubTrigger implements INodeType {
throw new NodeOperationError(
this.getNode(),
'A webhook with the identical URL probably exists already. Please delete it manually on Github!',
{ severity: 'warning' },
);
}

if (error.cause.httpCode === '404') {
throw new NodeOperationError(
this.getNode(),
'Check that the repository exists and that you have permission to create the webhooks this node requires',
{ severity: 'warning' },
);
}

Expand Down

0 comments on commit 784b433

Please sign in to comment.