UNPKG

n8n

Version:

n8n Workflow Automation Tool

18 lines 647 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getErrorNodeId = getErrorNodeId; exports.getErrorDescription = getErrorDescription; const n8n_workflow_1 = require("n8n-workflow"); function getErrorNodeId(error) { if (error instanceof n8n_workflow_1.NodeError) return error.node.id; if (error instanceof n8n_workflow_1.WorkflowActivationError) return error.node?.id; return undefined; } function getErrorDescription(error) { if (error instanceof n8n_workflow_1.NodeApiError) return error.description ?? undefined; return undefined; } //# sourceMappingURL=utils.js.map