Skip to content

Commit

Permalink
[PRMT-4832] New implementation approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-nhs committed May 10, 2024
1 parent 560a3bf commit d8ac4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/fhir/sds-fhir-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ export const getPracticeAsid = async (odsCode, serviceId) => {
logInfo(`Successfully retrieved ASID: ${asidCode} via FHIR for ODS code ${odsCode}`);
return asidCode;
} catch (err) {
logError(`Failed to retrieve ASID from FHIR for ODS Code: ${odsCode}`, err);
if (err.response) {
console.log(
logError(
`Error: Request failed with non-2xx status code\n
Response body: ${err.response.data}\n
HTTP Status code: ${err.response.status}`
);
}

logError(`Failed to retrieve ASID from FHIR for ODS Code: ${odsCode}`, err);
throw err;
}
};

0 comments on commit d8ac4fa

Please sign in to comment.