From 0d25ba3cbcfe09b76b40ea5199daf6a62d7f5262 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 14 Jun 2017 00:20:56 +0200 Subject: [PATCH] refactor: Add explicit error message. --- provider/marathon/marathon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provider/marathon/marathon.go b/provider/marathon/marathon.go index de1d5bbdf..b757be298 100644 --- a/provider/marathon/marathon.go +++ b/provider/marathon/marathon.go @@ -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 }