Merge pull request #1485 from novilabs/fix-consul-error-log

fix setup consul syncer error message
This commit is contained in:
Diptanu Choudhury 2016-07-28 22:57:12 -07:00 committed by GitHub
commit 399e6eba7b

View file

@ -203,7 +203,7 @@ func NewClient(cfg *config.Config, consulSyncer *consul.Syncer, logger *log.Logg
// Setup the Consul syncer // Setup the Consul syncer
if err := c.setupConsulSyncer(); err != nil { if err := c.setupConsulSyncer(); err != nil {
return nil, fmt.Errorf("failed to create client Consul syncer: %v") return nil, fmt.Errorf("failed to create client Consul syncer: %v", err)
} }
// Register and then start heartbeating to the servers. // Register and then start heartbeating to the servers.