[
https://issues.apache.org/jira/browse/GOBBLIN-1154?focusedWorklogId=436584&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-436584
]
ASF GitHub Bot logged work on GOBBLIN-1154:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 22/May/20 16:57
Start Date: 22/May/20 16:57
Worklog Time Spent: 10m
Work Description: 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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 436584)
Time Spent: 1h 50m (was: 1h 40m)
> Improve gaas error messages
> ---------------------------
>
> Key: GOBBLIN-1154
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1154
> Project: Apache Gobblin
> Issue Type: Improvement
> Reporter: Jack Moseley
> Priority: Major
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)