refactor: Add explicit error message.

This commit is contained in:
Fernandez Ludovic 2017-06-14 00:20:56 +02:00 committed by Ludovic Fernandez
parent ac5ab13a4c
commit 0d25ba3cbc

View file

@ -166,13 +166,13 @@ func (p *Provider) loadMarathonConfig() *types.Configuration {
applications, err := p.marathonClient.Applications(nil)
if err != nil {
log.Errorf("Failed to create a client for marathon, error: %s", err)
log.Errorf("Failed to retrieve applications from Marathon, error: %s", err)
return nil
}
tasks, err := p.marathonClient.AllTasks(&marathon.AllTasksOpts{Status: "running"})
if err != nil {
log.Errorf("Failed to create a client for marathon, error: %s", err)
log.Errorf("Failed to retrieve task from Marathon, error: %s", err)
return nil
}