Commit 989f97e5 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

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
parent ede5fac5
......@@ -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()
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment