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): def fullname(self):
return self.name return self.name
def print_error(self, msg): def print_error(self, *msg):
print_error("[%s]"%self.name, msg) print_error("[%s]"%self.name, *msg)
def description(self): def description(self):
return 'undefined' return 'undefined'

2
plugins/openalias.py

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

Loading…
Cancel
Save