refactor(core): Stop reporting EAUTH error codes to Sentry (no-changelog) (#9496)

This commit is contained in:
Iván Ovejero
2024-05-23 15:12:01 +02:00
committed by GitHub
parent 8737c0965e
commit f8683c31e0
4 changed files with 49 additions and 9 deletions

View File

@@ -537,7 +537,9 @@ export class ActiveWorkflowManager {
const dbWorkflow = existingWorkflow ?? (await this.workflowRepository.findById(workflowId));
if (!dbWorkflow) {
throw new WorkflowActivationError(`Failed to find workflow with ID "${workflowId}"`);
throw new WorkflowActivationError(`Failed to find workflow with ID "${workflowId}"`, {
level: 'warning',
});
}
if (shouldDisplayActivationMessage) {
@@ -564,6 +566,7 @@ export class ActiveWorkflowManager {
if (!canBeActivated) {
throw new WorkflowActivationError(
`Workflow ${dbWorkflow.display()} has no node to start the workflow - at least one trigger, poller or webhook node is required`,
{ level: 'warning' },
);
}