tweak "dying words" error message to try to improve clarity
The existing error message is oblique enough that those developers who knew enough to understand what wmllint was driving at would normally know better than to use "die" for last words in the first place. While the message may help experienced developers porting the work of inexperienced authors, most developers getting this message are probably puzzled. A more direct message would be more likely to set newbie UMC authors on the right path.
This commit is contained in:
parent
9662f49066
commit
190aedb047
1 changed files with 2 additions and 1 deletions
|
@ -1033,7 +1033,8 @@ def global_sanity_check(filename, lines):
|
|||
(key, prefix, value, comment) = fields
|
||||
if key in ("id", "speaker"):
|
||||
if deathcheck and ((value == filter_subject) or (value == "unit")):
|
||||
print '"%s", line %d: %s speaks in his/her death event' % (filename, nav.lineno+1, value)
|
||||
print '"%s", line %d: %s speaks in his/her "die" event rather than "last breath"' \
|
||||
% (filename, nav.lineno+1, value)
|
||||
# Collect information on defined movement types and races
|
||||
for nav in WmllintIterator(lines, filename):
|
||||
above = nav.ancestors()
|
||||
|
|
Loading…
Add table
Reference in a new issue