mirror of https://github.com/docker/compose.git
Add missing format var in error
This commit is contained in:
parent
87c46e281c
commit
785cb12833
|
@ -8,7 +8,7 @@ class Service(object):
|
|||
if not re.match('^[a-zA-Z0-9_]+$', name):
|
||||
raise ValueError('Invalid name: %s' % name)
|
||||
if 'image' in options and 'build' in options:
|
||||
raise ValueError('Service %s has both an image and build path specified. A service can either be built to image or use an existing image, not both.')
|
||||
raise ValueError('Service %s has both an image and build path specified. A service can either be built to image or use an existing image, not both.' % name)
|
||||
|
||||
self.name = name
|
||||
self.client = client
|
||||
|
|
Loading…
Reference in New Issue