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

Commit

Permalink
showing correct imagePull error
Browse files Browse the repository at this point in the history
  • Loading branch information
Daishan Peng authored and Craig Jellick committed Apr 6, 2018
1 parent 58bafb0 commit 99d3520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func wrapReader(reader io.ReadCloser, imageUUID string, progress *progress.Progr
for scanner.Scan() {
status := marshaller.FromString(scanner.Text())
if utils.HasKey(status, "error") {
return fmt.Errorf("Image [%s] failed to pull: %s", imageUUID, message)
return fmt.Errorf("Image [%s] failed to pull: %v", imageUUID, status["error"])
}
if utils.HasKey(status, "status") {
message = utils.InterfaceToString(status["status"])
Expand Down

0 comments on commit 99d3520

Please sign in to comment.