refactor(core): Use UserError for filesystem error classes (no-changelog)

This commit is contained in:
Tomi Turtiainen
2026-06-18 10:01:12 +00:00
parent da51684ba3
commit 89aeec7667
2 changed files with 4 additions and 4 deletions
@@ -1,6 +1,6 @@
import { OperationalError } from 'n8n-workflow';
import { UserError } from 'n8n-workflow';
export class DisallowedFilepathError extends OperationalError {
export class DisallowedFilepathError extends UserError {
constructor(filePath: string) {
super('Disallowed path detected', { extra: { filePath } });
}
@@ -1,6 +1,6 @@
import { OperationalError } from 'n8n-workflow';
import { UserError } from 'n8n-workflow';
export class FileNotFoundError extends OperationalError {
export class FileNotFoundError extends UserError {
constructor(filePath: string) {
super('File not found', { extra: { filePath } });
}