Skip to content

Commit

Permalink
Merge pull request #72 from nhsconnect/PRMT-4832
Browse files Browse the repository at this point in the history
PRMT-4832
  • Loading branch information
martin-nhs authored May 10, 2024
2 parents bc720c1 + d8ac4fa commit 64ec78e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/services/fhir/sds-fhir-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ export const getPracticeAsid = async (odsCode, serviceId) => {
return asidCode;
} catch (err) {
logError(`Failed to retrieve ASID from FHIR for ODS Code: ${odsCode}`, err);
if (err.response) {
logError(
`Error: Request failed with non-2xx status code\n
Response body: ${err.response.data}\n
HTTP Status code: ${err.response.status}`
);
}

throw err;
}
};

0 comments on commit 64ec78e

Please sign in to comment.