From a2a859623835c7915a1327a9f775b294ef010b46 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Sun, 18 Oct 2015 10:41:02 -0700 Subject: [PATCH] improve error message in mesos Signed-off-by: Victor Vieux --- cluster/mesos/cluster.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cluster/mesos/cluster.go b/cluster/mesos/cluster.go index daaae11f4b..03f9f352e5 100644 --- a/cluster/mesos/cluster.go +++ b/cluster/mesos/cluster.go @@ -17,7 +17,6 @@ import ( "github.com/docker/swarm/cluster/mesos/queue" "github.com/docker/swarm/scheduler" "github.com/docker/swarm/scheduler/node" - "github.com/docker/swarm/scheduler/strategy" "github.com/gogo/protobuf/proto" "github.com/mesos/mesos-go/mesosproto" mesosscheduler "github.com/mesos/mesos-go/scheduler" @@ -178,7 +177,7 @@ func (c *Cluster) CreateContainer(config *cluster.ContainerConfig, name string) return nil, err case <-time.After(c.taskCreationTimeout): c.pendingTasks.Remove(task) - return nil, strategy.ErrNoResourcesAvailable + return nil, fmt.Errorf("container failed to start after %s", c.taskCreationTimeout) } }