From c02c87010455821f8d83b7328e90d6b4be939f35 Mon Sep 17 00:00:00 2001 From: martin-nhs Date: Fri, 10 May 2024 12:11:05 +0100 Subject: [PATCH] [PRMT-4832] Removed JSON.stringify --- src/services/fhir/sds-fhir-client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/fhir/sds-fhir-client.js b/src/services/fhir/sds-fhir-client.js index e36d92b..a3999cf 100644 --- a/src/services/fhir/sds-fhir-client.js +++ b/src/services/fhir/sds-fhir-client.js @@ -44,7 +44,9 @@ export const getPracticeAsid = async (odsCode, serviceId) => { return asidCode; } catch (err) { logError( - `Failed to retrieve ASID from FHIR for ODS Code: ${odsCode} - error: ${JSON.stringify(err)}` + `Failed to retrieve ASID from FHIR for ODS Code: ${odsCode} - error: ${ + err.message ? err.message : 'No Error Message' + }` ); if (err.response) { logError(