Better error description

This commit is contained in:
dotasek 2023-01-27 11:22:37 -05:00
parent cca38587ce
commit f5f03442aa
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ public class StructureDefinitionValidator extends BaseValidator {
tc = type.getExtensionValue(ToolingExtensions.EXT_FHIR_TYPE).primitiveValue();
}
if (Utilities.noString(tc) && type.hasChild("code")) {
throw new Error("WTF?");
throw new Error("Snapshot for " + sd.getId() +" element " + path + " has type.code without a value ");
// if (type.getNamedChild("code").hasExtension(" http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type")) {
// tc = "*";
// }