mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: Prevent errors processed by n8n to be flagged as internal (no-changelog) (#10023)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export class ValidationError extends Error {
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
export class ValidationError extends ApplicationError {
|
||||
description = '';
|
||||
|
||||
itemIndex: number | undefined = undefined;
|
||||
@@ -18,7 +20,7 @@ export class ValidationError extends Error {
|
||||
itemIndex?: number;
|
||||
lineNumber?: number;
|
||||
}) {
|
||||
super();
|
||||
super(message);
|
||||
|
||||
this.lineNumber = lineNumber;
|
||||
this.itemIndex = itemIndex;
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"name": "errors falsely flagged as internal",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"id": "d2ff695c-4ca0-457d-ae9e-666d2dc53a53",
|
||||
"name": "When clicking ‘Test workflow’",
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"position": [
|
||||
360,
|
||||
420
|
||||
],
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "return {json: \"test\"}"
|
||||
},
|
||||
"id": "fc540f62-d671-49a2-b35d-aead4ed8bd10",
|
||||
"name": "Code",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
620,
|
||||
420
|
||||
],
|
||||
"onError": "continueErrorOutput"
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"id": "d8335277-61af-42d8-9cf5-02a8b85df42b",
|
||||
"name": "No Operation, do nothing",
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
900,
|
||||
500
|
||||
]
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"No Operation, do nothing": [
|
||||
{
|
||||
"json": {
|
||||
"error": "A 'json' property isn't an object [item 0]"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking ‘Test workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Code",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Code": {
|
||||
"main": [
|
||||
[],
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "1aa448f4-ac5f-497b-ae3c-62a5e9db63d4",
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true,
|
||||
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
|
||||
},
|
||||
"id": "TlJvElz9tvmByCh3",
|
||||
"tags": []
|
||||
}
|
||||
Reference in New Issue
Block a user