Commit 94075306 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2113] Improve error message

The exception about invalid RR class is not very helpful, so provide a
better one.
parent 28d84a9a
......@@ -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)
......
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