improve readability of error reporting output
Change-Id: I84cf8c6e6683c81d33596d79214d69f3f0199aa8 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
eee0d41635
commit
e942ec95b4
@ -146,13 +146,13 @@ def report(msg):
|
|||||||
|
|
||||||
def show_test_and_matches(msg, test, matches):
|
def show_test_and_matches(msg, test, matches):
|
||||||
report(
|
report(
|
||||||
'{} on line {}: {}'.format(
|
'{} on line {}: {} should produce {} {}'.format(
|
||||||
msg, test[0], ' '.join(test[1:]))
|
msg, test[0], test[1], test[2], test[3])
|
||||||
)
|
)
|
||||||
path = test[1]
|
path = test[1]
|
||||||
for linenum, code, new_path in matches:
|
for linenum, code, new_path in matches:
|
||||||
print('whereto: {} -> {} ({})'.format(
|
print('whereto: {} -> {} {} [line {}]'.format(
|
||||||
path, new_path, code))
|
path, code, new_path, linenum))
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
Reference in New Issue
Block a user