mirror of https://github.com/docker/compose.git
Rewrite duplicate override error message
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
0d0c0454e9
commit
7f1f450080
|
@ -49,10 +49,7 @@ class ComposeFileNotFound(ConfigurationError):
|
||||||
class DuplicateOverrideFileFound(ConfigurationError):
|
class DuplicateOverrideFileFound(ConfigurationError):
|
||||||
def __init__(self, override_filenames):
|
def __init__(self, override_filenames):
|
||||||
self.override_filenames = override_filenames
|
self.override_filenames = override_filenames
|
||||||
|
super(DuplicateOverrideFileFound, self).__init__(
|
||||||
@property
|
"Multiple override files found: {}. You may only use a single "
|
||||||
def msg(self):
|
"override file.".format(", ".join(override_filenames))
|
||||||
return """
|
)
|
||||||
Unable to determine with duplicate override files, only a single override file can be used.
|
|
||||||
Found: %s
|
|
||||||
""" % ", ".join(self.override_filenames)
|
|
||||||
|
|
Loading…
Reference in New Issue