commit c9d874ce3871656bd55ab596aa707699b7ec93de
parent 8902207443c9158417169b4dd94efcec41bc5eba
Author: ThomasV <thomasv@gitorious>
Date: Tue, 31 Mar 2015 12:21:20 +0200
openalias: more error message
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/plugins.py b/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'
diff --git a/plugins/openalias.py b/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