Skip to content

Commit

Permalink
chore: comment addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 committed Sep 15, 2023
1 parent 31e5f79 commit 4c03b00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/v0/destinations/marketo/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ const nestedResponseHandler = (marketoResponse, sourceMessage) => {
}
}
throw new InstrumentationError(
`Request failed during: ${sourceMessage}, error: ${JSON.stringify(reasons)}`,
`Request failed during: ${sourceMessage}, error: ${
JSON.stringify(reasons) || 'Reason(s) not Found'
}`,
statusCode,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(statusCode),
Expand Down

0 comments on commit 4c03b00

Please sign in to comment.