diff --git a/src/v0/destinations/salesforce/utils.js b/src/v0/destinations/salesforce/utils.js index 0cc4177881..bbd5216c5b 100644 --- a/src/v0/destinations/salesforce/utils.js +++ b/src/v0/destinations/salesforce/utils.js @@ -103,7 +103,7 @@ const salesforceResponseHandler = (destResponse, sourceMessage, authKey, authori // ref : https://help.salesforce.com/s/articleView?id=000387190&type=1 if (matchErrorCode('SERVER_UNAVAILABLE')) { throw new ThrottledError( - `${DESTINATION} Request Failed: ${status} - due to Search unavailable, ${sourceMessage}`, + `${DESTINATION} Request Failed: ${status} - due to ${getErrorMessage(response)}, ${sourceMessage}`, destResponse, ); } else { diff --git a/test/integrations/destinations/salesforce/dataDelivery/business.ts b/test/integrations/destinations/salesforce/dataDelivery/business.ts index 5b94ac986e..5374e3fae2 100644 --- a/test/integrations/destinations/salesforce/dataDelivery/business.ts +++ b/test/integrations/destinations/salesforce/dataDelivery/business.ts @@ -277,7 +277,7 @@ export const testScenariosForV1API: ProxyV1TestData[] = [ body: { output: { message: - 'Salesforce Request Failed: 503 - due to Search unavailable, during Salesforce Response Handling', + 'Salesforce Request Failed: 503 - due to Server Unavailable, during Salesforce Response Handling', response: [ { error: '[{"message":"Server Unavailable","errorCode":"SERVER_UNAVAILABLE"}]', diff --git a/test/integrations/destinations/salesforce/dataDelivery/data.ts b/test/integrations/destinations/salesforce/dataDelivery/data.ts index 48ba92ccdb..f157161751 100644 --- a/test/integrations/destinations/salesforce/dataDelivery/data.ts +++ b/test/integrations/destinations/salesforce/dataDelivery/data.ts @@ -319,7 +319,7 @@ const legacyTests = [ output: { status: 429, message: - 'Salesforce Request Failed: 503 - due to Search unavailable, during Salesforce Response Handling', + 'Salesforce Request Failed: 503 - due to Server Unavailable, during Salesforce Response Handling', destinationResponse: { response: [ {