Check for error return from AddEventListener
This commit is contained in:
1 parent
d85071ce4f
commit
a0a5921148
1 file changed
+4
-1
@@ -11,7 +11,10 @@ func StartUpdater(apiPath string, zone Zone) error {
|
||||
}
|
||||
|
||||
events := make(chan *docker.APIEvents)
|
||||
client.AddEventListener(events)
|
||||
err = client.AddEventListener(events)
|
||||
if err != nil {
|
||||
Error.Fatalf("Unable to connect to Docker API on %s: %s", apiPath, err)
|
||||
}
|
||||
|
||||
Info.Printf("Using Docker API on %s", apiPath)
|
||||
|
||||
|
||||
Reference in new issue
Block a user