Skip to content

Commit

Permalink
Issue #1323 - Updates after code review
Browse files Browse the repository at this point in the history
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
  • Loading branch information
tbieste committed Mar 22, 2021
1 parent 6e1e5ae commit b9db511
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,8 @@ private static List<QueryParameterValue> parseQueryParameterValuesString(SearchP
final String ofTypeParmName = searchParameter.getCode().getValue() + SearchConstants.OF_TYPE_MODIFIER_SUFFIX;
parameterValue.setOfTypeModifier(true);
if (parts.length < 2) {
throw SearchExceptionUtil.buildNewInvalidSearchException("Search parameter '" + ofTypeParmName + "' requires at least a code and value");
String msg = "Search parameter '" + searchParameter.getCode().getValue() + "' with modifier ':" + modifier + "' requires at least a code and value";
throw SearchExceptionUtil.buildNewInvalidSearchException(msg);
} else if (parts.length < 4) {
QueryParameterValue typeParameterValue = new QueryParameterValue();
if (parts.length == 3) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public void testSearchPatientWithIdentifierOfTypeValueOnly() {
.get();
assertResponse(response, Response.Status.BAD_REQUEST.getStatusCode());
assertExceptionOperationOutcome(response.readEntity(OperationOutcome.class),
"Search parameter 'identifier:of-type' requires at least a code and value");
"Search parameter 'identifier' with modifier ':of-type' requires at least a code and value");
}

@Test(groups = { "server-search" }, dependsOnMethods = {"testCreatePatient" })
Expand Down

0 comments on commit b9db511

Please sign in to comment.