improve error message in mesos

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2015-10-18 10:41:02 -07:00
parent 756671ac66
commit a2a8596238
1 changed files with 1 additions and 2 deletions

View File

@ -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)
}
}