feat(core): Reduce the number of events sent to Sentry (#6235)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-05-15 13:54:48 +00:00
committed by GitHub
parent 9182d1558a
commit a4c0cc9b5c
5 changed files with 49 additions and 9 deletions

View File

@@ -217,11 +217,13 @@ export class RoutingNode {
returnData.push({ json: {}, error: error.message });
continue;
}
if (error instanceof NodeApiError) error = error.cause;
throw new NodeApiError(this.node, error, {
runIndex,
itemIndex: i,
message: error?.message,
description: error?.description,
httpCode: error.isAxiosError && error.response && String(error.response?.status),
});
}
}