summaryrefslogtreecommitdiff
path: root/0142-pull-failure-shows-error-reason.patch
diff options
context:
space:
mode:
Diffstat (limited to '0142-pull-failure-shows-error-reason.patch')
-rw-r--r--0142-pull-failure-shows-error-reason.patch27
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
+