From 64612c128ddc1e0137d0a0b1e4ce72e86d25a0c6 Mon Sep 17 00:00:00 2001 From: "juan.marchionatto" Date: Fri, 29 Nov 2024 10:55:10 -0500 Subject: [PATCH] Add msg code --- .../ca/uhn/fhir/jpa/provider/ReplaceReferencesSvcImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/ReplaceReferencesSvcImpl.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/ReplaceReferencesSvcImpl.java index eb49e84956e..1ee9e7afd2e 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/ReplaceReferencesSvcImpl.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/ReplaceReferencesSvcImpl.java @@ -72,7 +72,8 @@ public class ReplaceReferencesSvcImpl implements IReplaceReferencesSvc { String resourceType = mapEntry.getKey(); IFhirResourceDao resDao = myDaoRegistry.getResourceDao(resourceType); if (resDao == null) { - throw new InternalErrorException("No DAO registered for resource type: " + resourceType); + throw new InternalErrorException( + Msg.code(2587) + "No DAO registered for resource type: " + resourceType); } // patch each resource of resourceType