Style: Make style.py's invalid warning print which file caused the infraction.

This commit is contained in:
Matt Evans 2012-06-29 11:19:06 -04:00
parent 579047c76d
commit 234fd1c4d8

View file

@ -244,7 +244,7 @@ class SortedIncludes(Verifier):
modified = mod & regions
if modified:
self.write("invalid sorting of includes\n")
self.write("invalid sorting of includes in %s\n" % (filename))
if self.ui.verbose:
for start, end in modified.regions:
self.write("bad region [%d, %d)\n" % (start, end))