Merge pull request #2005 from lnmunhoz/master
Fix error message and class name from Boot2Docker to DockerMachine
This commit is contained in:
commit
6f12224ec9
2 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue