refactor: Add explicit error message.
This commit is contained in:
parent
ac5ab13a4c
commit
0d25ba3cbc
1 changed files with 2 additions and 2 deletions
|
@ -166,13 +166,13 @@ func (p *Provider) loadMarathonConfig() *types.Configuration {
|
||||||
|
|
||||||
applications, err := p.marathonClient.Applications(nil)
|
applications, err := p.marathonClient.Applications(nil)
|
||||||
if err != 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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks, err := p.marathonClient.AllTasks(&marathon.AllTasksOpts{Status: "running"})
|
tasks, err := p.marathonClient.AllTasks(&marathon.AllTasksOpts{Status: "running"})
|
||||||
if err != nil {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue