Check for error return from AddEventListener

This commit is contained in:
Bryan Boreham committed 2014-11-05 12:44:39 +00:00
1 parent d85071ce4f
commit a0a5921148
1 file changed
+4 -1
+4 -1
View File
@@ -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)