Skip to content

Commit

Permalink
Fix error message in TransportDeplpoyModelAction class (#1368) (#1389)
Browse files Browse the repository at this point in the history
* Fix error message in TransportDeplpoyModelAction class

Signed-off-by: Sicheng Song <sicheng.song@outlook.com>

* Elaborate error message

Signed-off-by: Sicheng Song <sicheng.song@outlook.com>

---------

Signed-off-by: Sicheng Song <sicheng.song@outlook.com>
(cherry picked from commit 9b6af2e)

Co-authored-by: Sicheng Song <sicheng.song@outlook.com>
  • Loading branch information
opensearch-trigger-bot[bot] and b4sjoo authored Sep 27, 2023
1 parent 5b59e3e commit 28c6c41
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,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 28c6c41

Please sign in to comment.