mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-08-28 22:30:37 +02:00
refactor(core): Migrate all errors in cli package to new hierarchy (#13478)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
co-authored by
Tomi Turtiainen
parent
719e3c2cf7
commit
3ca99194c6
@@ -1,6 +1,6 @@
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
import { UnexpectedError } from 'n8n-workflow';
|
||||
|
||||
export class MalformedRefreshValueError extends ApplicationError {
|
||||
export class MalformedRefreshValueError extends UnexpectedError {
|
||||
constructor() {
|
||||
super('Refresh value must have the same number of values as keys');
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
import { UnexpectedError } from 'n8n-workflow';
|
||||
|
||||
export class UncacheableValueError extends ApplicationError {
|
||||
export class UncacheableValueError extends UnexpectedError {
|
||||
constructor(key: string) {
|
||||
super('Value cannot be cached in Redis', {
|
||||
extra: { key, hint: 'Does the value contain circular references?' },
|
||||
|
||||
Reference in New Issue
Block a user