diff options
author | CoprDistGit <infra@openeuler.org> | 2025-01-11 14:20:43 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-01-11 14:20:43 +0000 |
commit | 2295e96f69a8c13751ba69ea9176b0599c0909a8 (patch) | |
tree | c908aaed1b7f92c2e5aaa55ac6981ebe00dfe9bf /0142-pull-failure-shows-error-reason.patch | |
parent | b7a2cf915b9d2c7e530c02097631b69bacc0e93c (diff) |
automatic import of iSuladopeneuler24.03_LTS
Diffstat (limited to '0142-pull-failure-shows-error-reason.patch')
-rw-r--r-- | 0142-pull-failure-shows-error-reason.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/0142-pull-failure-shows-error-reason.patch b/0142-pull-failure-shows-error-reason.patch new file mode 100644 index 0000000..c156d61 --- /dev/null +++ b/0142-pull-failure-shows-error-reason.patch @@ -0,0 +1,27 @@ +From dd3f733949a0c6c9256a63b54079e9a7b8aa7fe6 Mon Sep 17 00:00:00 2001 +From: zhongtao <zhongtao17@huawei.com> +Date: Fri, 25 Oct 2024 02:50:01 +1400 +Subject: [PATCH 142/156] pull failure shows error reason + +Signed-off-by: zhongtao <zhongtao17@huawei.com> +--- + src/daemon/entry/connect/grpc/grpc_images_service.cc | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/daemon/entry/connect/grpc/grpc_images_service.cc b/src/daemon/entry/connect/grpc/grpc_images_service.cc +index 32f0446e..6135945a 100644 +--- a/src/daemon/entry/connect/grpc/grpc_images_service.cc ++++ b/src/daemon/entry/connect/grpc/grpc_images_service.cc +@@ -691,6 +691,9 @@ Status ImagesServiceImpl::PullImage(ServerContext *context, const PullImageReque + stream.writer = (void *)writer; + + ret = cb->image.pull(image_req, &stream, &image_res); ++ if (image_res->errmsg != NULL) { ++ errmsg = image_res->errmsg; ++ } + free_image_pull_image_request(image_req); + free_image_pull_image_response(image_res); + if (ret == 0) { +-- +2.34.1 + |