Browse code

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

Fixing warning to correctly output error string.

David Calavera authored on 2016/04/09 08:43:07
Showing 1 changed files
... ...
@@ -388,7 +388,7 @@ func restoreCustomImage(is image.Store, ls layer.Store, rs reference.Store) erro
388 388
 
389 389
 		id, err := is.Create(config)
390 390
 		if err != nil {
391
-			logrus.Warnf("Failed to restore custom image %s with error: %s.", name, err.Error)
391
+			logrus.Warnf("Failed to restore custom image %s with error: %s.", name, err)
392 392
 			logrus.Warnf("Skipping image %s...", name)
393 393
 			continue
394 394
 		}