Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit 99d3520

Browse files
Daishan PengCraig Jellick
authored andcommitted
showing correct imagePull error
1 parent 58bafb0 commit 99d3520

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/image/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func wrapReader(reader io.ReadCloser, imageUUID string, progress *progress.Progr
100100
for scanner.Scan() {
101101
status := marshaller.FromString(scanner.Text())
102102
if utils.HasKey(status, "error") {
103-
return fmt.Errorf("Image [%s] failed to pull: %s", imageUUID, message)
103+
return fmt.Errorf("Image [%s] failed to pull: %v", imageUUID, status["error"])
104104
}
105105
if utils.HasKey(status, "status") {
106106
message = utils.InterfaceToString(status["status"])

0 commit comments

Comments
 (0)