Skip to content

Commit

Permalink
return 400 code when connector id is incorrect in GetConnector API
Browse files Browse the repository at this point in the history
Signed-off-by: Xun Zhang <[email protected]>
  • Loading branch information
Zhangxunmt committed Jul 5, 2023
1 parent 04fea62 commit 8e1d24b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected void doExecute(Task task, ActionRequest request, ActionListener<MLConn
actionListener.onFailure(e);
}
} else {
actionListener.onFailure(new MLResourceNotFoundException("Fail to find connector"));
actionListener.onFailure(new IllegalArgumentException("Failed to find connector with the provided connector id: " + connectorId));
}
}, e -> {
if (e instanceof IndexNotFoundException) {
Expand Down

0 comments on commit 8e1d24b

Please sign in to comment.