mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-19 07:36:52 +00:00
refactor(core): Use UserError for filesystem error classes (no-changelog)
This commit is contained in:
@@ -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 } });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user