Procházet zdrojové kódy

Merge pull request #21894 from Microsoft/sjw/nanoserver-fix

Fixing warning to correctly output error string.
David Calavera před 9 roky
rodič
revize
f62b26571a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      daemon/daemon_windows.go

+ 1 - 1
daemon/daemon_windows.go

@@ -388,7 +388,7 @@ func restoreCustomImage(is image.Store, ls layer.Store, rs reference.Store) erro
 
 
 		id, err := is.Create(config)
 		id, err := is.Create(config)
 		if err != nil {
 		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)
 			logrus.Warnf("Skipping image %s...", name)
 			continue
 			continue
 		}
 		}