Feature Request #4287

prefix warnings with "warning"

Added by Ammler over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:2012-09-27
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

Errors like

"sprites/nml/extra/extra-openttd-gui.pnml", line 2: Exceeding the limit of 162 spriets for sprite replacement type 'OTTD_GUI', extra sprites may be ignored

should be prefixed with something like "WARNING:", so you know, that the final grf could still be fine.

Similar issue with language errors

classify.patch Magnifier (1.34 KB) Alberth, 2012-09-27 18:54

Associated revisions

Revision 2038:4b5537fead0b
Added by Alberth over 5 years ago

Change: Unify format of warning and error messages, closes #4287

Revision 2038:4b5537fead0b
Added by Alberth over 5 years ago

Change: Unify format of warning and error messages, closes #4287

History

#1 Updated by Ammler over 5 years ago

  • Description updated (diff)

#2 Updated by Ammler over 5 years ago

3 different error levels:

1 ERROR
2 WARNING
3 LANGUAGE

#3 Updated by Alberth over 5 years ago

Attached patch normalizes to warnings and errors with the following format:

nmlc warning: Error in language file "lang/dutch.lng": "lang/dutch.lng", line 2: Line has no ':' delimiter
nmlc ERROR: "001_action8.nml", line 3: Unknown string "STR_REDGRESSION_NAME" 

#4 Updated by Alberth over 5 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset 4b5537fead0b.

Also available in: Atom PDF