Browse Source

Fixing warning to correctly output error string.

Signed-off-by: Stefan J. Wernli <swernli@microsoft.com>
Stefan J. Wernli 9 năm trước cách đây
mục cha
commit
3c220cfcba
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      daemon/daemon_windows.go

+ 1 - 1
daemon/daemon_windows.go

@@ -402,7 +402,7 @@ func restoreCustomImage(is image.Store, ls layer.Store, rs reference.Store) erro
 
 		id, err := is.Create(config)
 		if err != nil {
-			logrus.Warnf("Failed to restore custom image %s with error: %s.", name, err.Error)
+			logrus.Warnf("Failed to restore custom image %s with error: %s.", name, err)
 			logrus.Warnf("Skipping image %s...", name)
 			continue
 		}