openalias: more error message
This commit is contained in:
parent
8902207443
commit
c9d874ce38
@ -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'
|
||||
|
||||
@ -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…
Reference in New Issue
Block a user