fix r4b test failure

This commit is contained in:
Grahame Grieve 2022-10-26 23:20:42 +11:00
parent a70fc37b87
commit cc38567c93
1 changed files with 9 additions and 1 deletions

View File

@ -578,7 +578,15 @@ public class FHIRPathEngine {
} }
private FHIRException makeExceptionPL(Integer num, ExpressionNode holder, String constName, Object... args) { private FHIRException makeExceptionPL(Integer num, ExpressionNode holder, String constName, Object... args) {
return makeException(holder, constName, args); String fmt = worker.formatMessagePL(num, constName, args);
if (location != null) {
fmt = fmt + " "+worker.formatMessage(I18nConstants.FHIRPATH_LOCATION, location);
}
if (holder != null) {
return new PathEngineException(fmt, holder.getStart(), holder.toString());
} else {
return new PathEngineException(fmt);
}
} }
private FHIRException makeException(ExpressionNode holder, String constName, Object... args) { private FHIRException makeException(ExpressionNode holder, String constName, Object... args) {