BIND 10 trac2113, updated. 940753065730e77c7fad72d005f62713f2cfb82c [2113] Improve error message
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Jul 31 10:50:04 UTC 2012
The branch, trac2113 has been updated
via 940753065730e77c7fad72d005f62713f2cfb82c (commit)
from 28d84a9af289a4fbbdef1eb7da8e3674dc0de9af (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 940753065730e77c7fad72d005f62713f2cfb82c
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Tue Jul 31 12:49:14 2012 +0200
[2113] Improve error message
The exception about invalid RR class is not very helpful, so provide a
better one.
-----------------------------------------------------------------------
Summary of changes:
src/bin/cfgmgr/plugins/datasrc_config_plugin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/bin/cfgmgr/plugins/datasrc_config_plugin.py b/src/bin/cfgmgr/plugins/datasrc_config_plugin.py
index 88fbc61..fe87725 100644
--- a/src/bin/cfgmgr/plugins/datasrc_config_plugin.py
+++ b/src/bin/cfgmgr/plugins/datasrc_config_plugin.py
@@ -41,7 +41,7 @@ def check(config):
try:
rr_class = isc.dns.RRClass(rr_class_str)
except isc.dns.InvalidRRClass as irc:
- return str(irc)
+ return "The class '" + rr_class_str + "' is invalid"
dlist = isc.datasrc.ConfigurableClientList(rr_class)
client_config = classes.get(rr_class_str)
More information about the bind10-changes
mailing list