Rewrite duplicate override error message

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-05-23 12:14:32 -07:00 committed by Joffrey F
parent 88fa8db79a
commit d2a8a9edaa
1 changed files with 4 additions and 7 deletions

View File

@ -49,10 +49,7 @@ class ComposeFileNotFound(ConfigurationError):
class DuplicateOverrideFileFound(ConfigurationError):
def __init__(self, override_filenames):
self.override_filenames = override_filenames
@property
def msg(self):
return """
Unable to determine with duplicate override files, only a single override file can be used.
Found: %s
""" % ", ".join(self.override_filenames)
super(DuplicateOverrideFileFound, self).__init__(
"Multiple override files found: {}. You may only use a single "
"override file.".format(", ".join(override_filenames))
)