Przeglądaj źródła

Add missing format var in error

Ben Firshman 12 lat temu
rodzic
commit
785cb12833
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      plum/service.py

+ 1 - 1
plum/service.py

@@ -8,7 +8,7 @@ class Service(object):
         if not re.match('^[a-zA-Z0-9_]+$', name):
         if not re.match('^[a-zA-Z0-9_]+$', name):
             raise ValueError('Invalid name: %s' % name)
             raise ValueError('Invalid name: %s' % name)
         if 'image' in options and 'build' in options:
         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.name = name
         self.client = client
         self.client = client