Add connector id to the registration error message

Right now it is not clear what connector is failing. It will be easier to debug with more specific error message.

Related to #400.
This commit is contained in:
Alexandr Burdiyan 2016-06-09 13:18:52 +02:00
parent a9d854e144
commit 24134e18ea

View file

@ -191,7 +191,7 @@ func main() {
for _, cfg := range cfgs {
cfg := cfg
if err = srv.AddConnector(cfg); err != nil {
log.Fatalf("Failed registering connector: %v", err)
log.Fatalf("Failed registering connector '%s': %v", cfg.ConnectorID(), err)
}
}