mirror of https://github.com/docker/compose.git
Fix error message and class name from Boot2Docker to DockerMachine
Signed-off-by: Lucas N. Munhoz <ln.munhoz@gmail.com>
This commit is contained in:
parent
9da2bf3973
commit
b33dd3bc01
|
@ -41,7 +41,7 @@ class Command(DocoptCommand):
|
||||||
else:
|
else:
|
||||||
raise errors.DockerNotFoundGeneric()
|
raise errors.DockerNotFoundGeneric()
|
||||||
elif call_silently(['which', 'boot2docker']) == 0:
|
elif call_silently(['which', 'boot2docker']) == 0:
|
||||||
raise errors.ConnectionErrorBoot2Docker()
|
raise errors.ConnectionErrorDockerMachine()
|
||||||
else:
|
else:
|
||||||
raise errors.ConnectionErrorGeneric(self.get_client().base_url)
|
raise errors.ConnectionErrorGeneric(self.get_client().base_url)
|
||||||
|
|
||||||
|
|
|
@ -40,10 +40,10 @@ class DockerNotFoundGeneric(UserError):
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
|
||||||
class ConnectionErrorBoot2Docker(UserError):
|
class ConnectionErrorDockerMachine(UserError):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(ConnectionErrorBoot2Docker, self).__init__("""
|
super(ConnectionErrorDockerMachine, self).__init__("""
|
||||||
Couldn't connect to Docker daemon - you might need to run `boot2docker up`.
|
Couldn't connect to Docker daemon - you might need to run `docker-machine start default`.
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue