Parcourir la source

put [b10-cfgmgr] before error message
(removed from the one exception it was in, and moved to where it is actually printed)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac294@2613 e5f2f494-b856-4b98-b285-d166d9295462

Jelte Jansen il y a 14 ans
Parent
commit
989f97e56a
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      src/bin/cfgmgr/b10-cfgmgr.py.in
  2. 1 1
      src/lib/python/isc/config/cfgmgr.py

+ 1 - 1
src/bin/cfgmgr/b10-cfgmgr.py.in

@@ -56,7 +56,7 @@ def main():
     except KeyboardInterrupt as kie:
         print("[b10-cfgmgr] Interrupted, exiting")
     except ConfigManagerDataReadError as cmdre:
-        print(str(cmdre))
+        print("[b10-cfgmgr] " + str(cmdre))
         return 2
     if cm:
         return cm.write_config()

+ 1 - 1
src/lib/python/isc/config/cfgmgr.py

@@ -78,7 +78,7 @@ class ConfigManagerData:
                         config.data = file_config
                     else:
                         # We can put in a migration path here for old data
-                        raise ConfigManagerDataReadError("[b10-cfgmgr] Old version of data found")
+                        raise ConfigManagerDataReadError("Old version of data found")
                 else:
                     raise ConfigManagerDataReadError("No version information in configuration file " + config.db_filename)
             except: