Skip to content

Commit

Permalink
log the correct error message when unable to get dir size
Browse files Browse the repository at this point in the history
Signed-off-by: Wayne Starr <[email protected]>
  • Loading branch information
YrrepNoj authored and Racer159 committed Mar 8, 2023
1 parent a006d11 commit 5616582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/packager/images/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (i *ImgConfig) PullAll() error {
)
currentSize, dirErr = utils.GetDirSize(i.ImagesPath)
if dirErr != nil {
message.Warnf("unable to get the updated progress of the image pull: %s", err.Error())
message.Warnf("unable to get the updated progress of the image pull: %s", dirErr.Error())
time.Sleep(200 * time.Millisecond)
continue
}
Expand Down

0 comments on commit 5616582

Please sign in to comment.