Changeset 5a45706 in git for src/message.c


Ignore:
Timestamp:
03/03/15 12:15:49 (5 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
48787a9
Parents:
9b658f2
Message:

lib/survex.pot,src/message.c,tests/: Show 'error' in front of error
messages, like we show 'warning' in front of warnings. Fixes #48,
reported by Wookey.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/message.c

    r9b658f2 r5a45706  
    12401240   aven_v_report(severity, fnm, line, en, ap);
    12411241#else
     1242   const char * level;
    12421243   if (fnm) {
    12431244      fputs(fnm, STDERR);
     
    12521253      /* TRANSLATORS: Indicates a warning message e.g.:
    12531254       * "spoon.svx:12: warning: *prefix is deprecated" */
    1254       fputs(msg(/*warning*/4), STDERR);
    1255       fputs(": ", STDERR);
    1256    }
     1255      level = msg(/*warning*/4);
     1256   } else {
     1257      /* TRANSLATORS: Indicates an error message e.g.:
     1258       * "spoon.svx:13:4: error: Field may not be omitted" */
     1259      level = msg(/*error*/93);
     1260   }
     1261   fputs(level, STDERR);
     1262   fputs(": ", STDERR);
    12571263
    12581264   vfprintf(STDERR, msg(en), ap);
Note: See TracChangeset for help on using the changeset viewer.