Skip to content

Commit

Permalink
fix: pass status instead of 500 in retryable code
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishmalik committed Jan 31, 2024
1 parent 9ac6d33 commit 1060f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v0/destinations/campaign_manager/networkHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const responseHandler = (destinationResponse) => {
if (checkIfFailuresAreRetryable(response)) {
throw new RetryableError(
`Campaign Manager: Retrying during CAMPAIGN_MANAGER response transformation`,
500,
status,
destinationResponse,
);
} else {
Expand All @@ -76,7 +76,7 @@ const responseHandler = (destinationResponse) => {

throw new NetworkError(
`Campaign Manager: ${response.error?.message} during CAMPAIGN_MANAGER response transformation 3`,
500,
status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(status),
},
Expand Down

0 comments on commit 1060f91

Please sign in to comment.