Commit 6f1ba7a2 authored by Marek Vavrusa's avatar Marek Vavrusa

scenario: improved match error failure message

parent 866b7b95
......@@ -228,7 +228,8 @@ class Entry:
try:
res = self.match_part(code, msg)
except Exception as e:
raise Exception("line %d, %s: %s" % (self.lineno, code, str(e)))
errstr = '%s in the response:\n%s' % (str(e), msg.to_text())
raise Exception("line %d, \"%s\": %s" % (self.lineno, code, errstr))
def cmp_raw(self, raw_value):
if self.is_raw_data_entry is False:
......
......@@ -2,7 +2,7 @@
import sys
from distutils.core import setup
version = '0.1'
version = '0.1.1'
kwargs = {
'name' : 'pydnstest',
......
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