ref: 405c2f6899fbe008df8ccd45355bd31846cf1b1d
parent: 58d4c25e50b9399bd81e43254ddae5949778e577
author: Bjørn Erik Pedersen <[email protected]>
date: Thu May 18 19:23:29 EDT 2017
tpl/images: Fix error handling in Config
--- a/tpl/images/images.go
+++ b/tpl/images/images.go
@@ -70,10 +70,13 @@
}
config, _, err = image.DecodeConfig(f)
+ if err != nil {
+ return config, err
+ }
ns.cacheMu.Lock()
ns.cache[filename] = config
ns.cacheMu.Unlock()
- return config, err
+ return config, nil
}