Skip to content

Commit

Permalink
Issue #000 fix: corrected error message
Browse files Browse the repository at this point in the history
  • Loading branch information
krgauraw committed Feb 24, 2021
1 parent 22d1eba commit 31b402f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CategoryDefinitionValidator(schemaName: String, version: String) extends B
request.put("identifier", updatedId)
val channelCatResp = Await.result(oec.graphService.readExternalProps(request, List("objectMetadata")), Duration.apply("30 seconds"))
if(StringUtils.equalsAnyIgnoreCase(channelCatResp.getResponseCode.name(), ResponseCode.RESOURCE_NOT_FOUND.name())) {
throw new ResourceNotFoundException(resp.getParams.getErr, resp.getParams.getErrmsg + " " + resp.getResult)
throw new ResourceNotFoundException(channelCatResp.getParams.getErr, channelCatResp.getParams.getErrmsg + " " + channelCatResp.getResult)
} else channelCatResp
}
} else throw new ServerException(resp.getParams.getErr, resp.getParams.getErrmsg + " " + resp.getResult)
Expand Down

0 comments on commit 31b402f

Please sign in to comment.