Skip to content

Commit

Permalink
Updated DV360 error type
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-das-in committed Feb 5, 2025
1 parent f888302 commit 3242c90
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const sendUpdateRequest = async (
await bulkUploaderResponseHandler(response, statsName, statsContext)
} catch (error) {
if ((error as HTTPError).response?.status === 500) {
throw new IntegrationError((error as HTTPError).message, 'INTERNAL_SERVER_ERROR', 500)
throw new IntegrationError(error.response?.message ?? (error as HTTPError).message, 'INTERNAL_SERVER_ERROR', 500)
}

await bulkUploaderResponseHandler((error as HTTPError).response, statsName, statsContext)
Expand Down

0 comments on commit 3242c90

Please sign in to comment.