Browse Source

openalias: more error message

283
ThomasV 10 years ago
parent
commit
c9d874ce38
  1. 4
      lib/plugins.py
  2. 2
      plugins/openalias.py

4
lib/plugins.py

@ -82,8 +82,8 @@ class BasePlugin:
def fullname(self):
return self.name
def print_error(self, msg):
print_error("[%s]"%self.name, msg)
def print_error(self, *msg):
print_error("[%s]"%self.name, *msg)
def description(self):
return 'undefined'

2
plugins/openalias.py

@ -258,7 +258,7 @@ class Plugin(BasePlugin):
# answer should contain two RRSET: DNSKEY and RRSIG(DNSKEY)
answer = response.answer
if len(answer) != 2:
self.print_error("answer error")
self.print_error("answer error", answer)
return 0
# the DNSKEY should be self signed, validate it

Loading…
Cancel
Save