Start FixtureLookupErrorRepr with an 'E'

This commit is contained in:
Edoardo Batini 2016-07-23 23:43:34 +02:00
parent 38e0e08074
commit 6799a47c78
1 changed files with 7 additions and 2 deletions

View File

@ -1835,8 +1835,13 @@ class FixtureLookupErrorRepr(TerminalRepr):
#tw.line("FixtureLookupError: %s" %(self.argname), red=True)
for tbline in self.tblines:
tw.line(tbline.rstrip())
for line in self.errorstring.split("\n"):
tw.line(" " + line.strip(), red=True)
lines = self.errorstring.split("\n")
for line in lines:
if line == lines[0]:
prefix = 'E '
else:
prefix = ' '
tw.line(prefix + line.strip(), red=True)
tw.line()
tw.line("%s:%d" % (self.filename, self.firstlineno+1))