Skip to content

Commit

Permalink
fix: add optional chaining for error message in network handler of In…
Browse files Browse the repository at this point in the history
…tercom (#2648)

fix bugsnag issue
  • Loading branch information
ItsSudip authored Sep 25, 2023
1 parent b49d0ee commit 10a13bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v0/destinations/campaign_manager/networkHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const responseHandler = (destinationResponse) => {
}

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

0 comments on commit 10a13bc

Please sign in to comment.