aplex commented on a change in pull request #2993: URL: https://github.com/apache/incubator-gobblin/pull/2993#discussion_r429356449
########## File path: gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-server/src/main/java/org/apache/gobblin/service/FlowExecutionResource.java ########## @@ -65,8 +66,11 @@ public FlowExecutionResource() {} */ @Override public FlowExecution get(ComplexResourceKey<FlowStatusId, EmptyRecord> key) { - // this returns null to raise a 404 error if flowStatus is null - return convertFlowStatus(getFlowStatusFromGenerator(key, this._flowStatusGenerator)); + FlowExecution flowExecution = convertFlowStatus(getFlowStatusFromGenerator(key, this._flowStatusGenerator)); + if (flowExecution == null) { + throw new RestLiServiceException(HttpStatus.S_404_NOT_FOUND, "No flow execution found for flowStatusId " + key.getKey()); Review comment: Can you add it to the message? The point here is to provide detailed and helpful error messages to users, so they don't come back to us with follow up questions, and can troubleshoot themselves. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org