Add msg code

This commit is contained in:
juan.marchionatto 2024-11-29 10:55:10 -05:00
parent 6c4ab554fa
commit 64612c128d
1 changed files with 2 additions and 1 deletions

View File

@ -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