Преглед изворни кода

Merge pull request #699 from dtenenba/master

interpolate service_name in error message
Ben Firshman пре 11 година
родитељ
комит
429a3feabc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      fig/project.py

+ 1 - 1
fig/project.py

@@ -67,7 +67,7 @@ class Project(object):
         dicts = []
         for service_name, service in list(config.items()):
             if not isinstance(service, dict):
-                raise ConfigurationError('Service "%s" doesn\'t have any configuration options. All top level keys in your fig.yml must map to a dictionary of configuration options.')
+                raise ConfigurationError('Service "%s" doesn\'t have any configuration options. All top level keys in your fig.yml must map to a dictionary of configuration options.' % service_name)
             service['name'] = service_name
             dicts.append(service)
         return cls.from_dicts(name, dicts, client)