mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +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 { WorkflowRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { UnexpectedError, type IWorkflowBase, type IWorkflowLoader } from 'n8n-workflow';
|
import { UserError, type IWorkflowBase, type IWorkflowLoader } from 'n8n-workflow';
|
||||||
|
|
||||||
@Service()
|
@Service()
|
||||||
export class WorkflowLoaderService implements IWorkflowLoader {
|
export class WorkflowLoaderService implements IWorkflowLoader {
|
||||||
@@ -10,7 +10,7 @@ export class WorkflowLoaderService implements IWorkflowLoader {
|
|||||||
const workflow = await this.workflowRepository.findById(workflowId);
|
const workflow = await this.workflowRepository.findById(workflowId);
|
||||||
|
|
||||||
if (!workflow) {
|
if (!workflow) {
|
||||||
throw new UnexpectedError(`Failed to find workflow with ID "${workflowId}"`);
|
throw new UserError(`Failed to find workflow with ID "${workflowId}"`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return workflow;
|
return workflow;
|
||||||
|
|||||||
Reference in New Issue
Block a user