n8n
Version:
n8n Workflow Automation Tool
14 lines • 879 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.SubworkflowPolicyDenialError = void 0;
const n8n_workflow_1 = require("n8n-workflow");
class SubworkflowPolicyDenialError extends n8n_workflow_1.WorkflowOperationError {
constructor({ subworkflowId, subworkflowProject, areOwnedBySameProject, node, }) {
const description = areOwnedBySameProject
? 'Change the settings of the sub-workflow so it can be called by this one.'
: `An admin for the ${subworkflowProject.name} project can make this change. You may need to tell them the ID of the sub-workflow, which is ${subworkflowId}`;
super(`Target workflow ID ${subworkflowId} may not be called`, node, description);
}
}
exports.SubworkflowPolicyDenialError = SubworkflowPolicyDenialError;
//# sourceMappingURL=subworkflow-policy-denial.error.js.map
;