Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5708038 commit 553982bCopy full SHA for 553982b
connectable.go
@@ -178,8 +178,10 @@ func setupContainer(id string) error {
178
log.Printf("setting iptables on %s \n", container.ID[:12])
179
shellCmd := strings.Join(cmds, " && ")
180
err := runNetCmd(container.ID, self.Image, shellCmd)
181
- log.Printf("error setting iptables on %s: %s \n", container.ID[:12], err)
182
- return err
+ if err != nil {
+ log.Printf("error setting iptables on %s: %s \n", container.ID[:12], err)
183
+ return err
184
+ }
185
}
186
187
return nil
0 commit comments