UNPKG

@gotohuman/n8n-nodes-gotohuman

Version:

n8n node to request human reviews in AI workflows with gotoHuman

14 lines 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleErrorPostReceive = handleErrorPostReceive; const n8n_workflow_1 = require("n8n-workflow"); async function handleErrorPostReceive(data, response) { if (String(response.statusCode).startsWith('4') || String(response.statusCode).startsWith('5')) { throw new n8n_workflow_1.NodeApiError(this.getNode(), response, { message: response.body, httpCode: String(response.statusCode), }); } return data; } //# sourceMappingURL=GenericFunctions.js.map