Skip to content

Commit

Permalink
Fix error message in TransportDeplpoyModelAction class (opensearch-pr…
Browse files Browse the repository at this point in the history
…oject#1368)

* Fix error message in TransportDeplpoyModelAction class

Signed-off-by: Sicheng Song <[email protected]>

* Elaborate error message

Signed-off-by: Sicheng Song <[email protected]>

---------

Signed-off-by: Sicheng Song <[email protected]>
  • Loading branch information
b4sjoo authored Sep 26, 2023
1 parent 234f81e commit 9b6af2e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ protected void doExecute(Task task, ActionRequest request, ActionListener<MLDepl
listener.onFailure(e);
}));
}, e -> {
log.error("Failed to deploy model " + modelId, e);
log.error("Failed to retrieve the ML model with ID: " + modelId, e);
listener.onFailure(e);
}));
} catch (Exception e) {
log.error("Failed to get ML model " + modelId, e);
log.error("Failed to deploy the ML model with ID " + modelId, e);
listener.onFailure(e);
}

Expand Down

0 comments on commit 9b6af2e

Please sign in to comment.