Browse Source

Quote network names in error messages

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad 9 years ago
parent
commit
53d56ea245
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compose/network.py

+ 2 - 2
compose/network.py

@@ -44,11 +44,11 @@ class Network(object):
             data = self.inspect()
             if self.driver and data['Driver'] != self.driver:
                 raise ConfigurationError(
-                    'Network {} needs to be recreated - driver has changed'
+                    'Network "{}" needs to be recreated - driver has changed'
                     .format(self.full_name))
             if data['Options'] != (self.driver_opts or {}):
                 raise ConfigurationError(
-                    'Network {} needs to be recreated - options have changed'
+                    'Network "{}" needs to be recreated - options have changed'
                     .format(self.full_name))
         except NotFound:
             driver_name = 'the default driver'