Skip to content

Commit 7696fbd

Browse files
committed
tracematch: Improve error reporting.
1 parent 67a30ef commit 7696fbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tracematch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ def match(self, calls, verbose = False):
260260
srcCall = srcCalls.next()
261261
except StopIteration:
262262
if skippedSrcCalls:
263-
raise TraceMismatch('missing call `%s` (found `%s`)' % (refCall, skippedSrcCalls[0]))
263+
raise TraceMismatch('missing call\n %s\nfound\n %s)' % (refCall, skippedSrcCalls[0]))
264264
else:
265-
raise TraceMismatch('missing call %s' % refCall)
265+
raise TraceMismatch('missing call\n %s' % refCall)
266266
if verbose:
267267
print '\t%s %s%r = %r' % srcCall
268268
if refCall.match(srcCall, mo):

0 commit comments

Comments
 (0)