28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
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
|
|
|