Skip to content

Commit

Permalink
use the correct field name on http errors
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Apr 3, 2023
1 parent ae5848d commit c9120a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/NodeExecuteFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ async function proxyRequestToAxios(

const message = `${response.status as number} - ${JSON.stringify(responseData)}`;
throw Object.assign(new Error(message, { cause: error }), {
status: response.status,
statusCode: response.status,
options: pick(config ?? {}, ['url', 'method', 'data', 'headers']),
});
} else {
Expand Down

0 comments on commit c9120a7

Please sign in to comment.