mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
chore(core): Stop reporting RLC workflow ID error (#16659)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { WorkflowRepository } from '@n8n/db';
|
||||
import { Service } from '@n8n/di';
|
||||
import { UnexpectedError, type IWorkflowBase, type IWorkflowLoader } from 'n8n-workflow';
|
||||
import { UserError, type IWorkflowBase, type IWorkflowLoader } from 'n8n-workflow';
|
||||
|
||||
@Service()
|
||||
export class WorkflowLoaderService implements IWorkflowLoader {
|
||||
@@ -10,7 +10,7 @@ export class WorkflowLoaderService implements IWorkflowLoader {
|
||||
const workflow = await this.workflowRepository.findById(workflowId);
|
||||
|
||||
if (!workflow) {
|
||||
throw new UnexpectedError(`Failed to find workflow with ID "${workflowId}"`);
|
||||
throw new UserError(`Failed to find workflow with ID "${workflowId}"`);
|
||||
}
|
||||
|
||||
return workflow;
|
||||
|
||||
Reference in New Issue
Block a user