Skip to content

Commit

Permalink
[PRMT-4832] Removed JSON.stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-nhs committed May 10, 2024
1 parent db646be commit c02c870
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/fhir/sds-fhir-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c02c870

Please sign in to comment.