Browse code

Fixing warning to correctly output error string.

Signed-off-by: Stefan J. Wernli <swernli@microsoft.com>

Stefan J. Wernli authored on 2016/04/09 07:04:04
Showing 1 changed files
... ...
@@ -402,7 +402,7 @@ func restoreCustomImage(is image.Store, ls layer.Store, rs reference.Store) erro
402 402
 
403 403
 		id, err := is.Create(config)
404 404
 		if err != nil {
405
-			logrus.Warnf("Failed to restore custom image %s with error: %s.", name, err.Error)
405
+			logrus.Warnf("Failed to restore custom image %s with error: %s.", name, err)
406 406
 			logrus.Warnf("Skipping image %s...", name)
407 407
 			continue
408 408
 		}