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 f55db48
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,11 @@ 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 as unknown as any).response?.message ?? (error as HTTPError).message,
'INTERNAL_SERVER_ERROR',
500
)
}

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

0 comments on commit f55db48

Please sign in to comment.