add missing error check
This commit is contained in:
parent
1328be7c29
commit
f84dc1e908
1 changed files with 4 additions and 1 deletions
5
utils.go
5
utils.go
|
@ -83,7 +83,10 @@ func MergeConfig(userConf, imageConf *Config) error {
|
|||
} else {
|
||||
for _, imagePortSpec := range imageConf.PortSpecs {
|
||||
found := false
|
||||
imageNat, _ := parseNat(imagePortSpec)
|
||||
imageNat, err := parseNat(imagePortSpec)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, userPortSpec := range userConf.PortSpecs {
|
||||
userNat, err := parseNat(userPortSpec)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue