diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/grecs-lex.l | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/grecs-lex.l b/src/grecs-lex.l index 329c725..52a15ef 100644 --- a/src/grecs-lex.l +++ b/src/grecs-lex.l @@ -382,7 +382,8 @@ grecs_parse_line_directive(char *text, grecs_locus_t *ploc, struct wordsplit ws; if (wordsplit(text, &ws, WRDSF_DEFFLAGS)) - grecs_error(ploc, 0, _("cannot parse #line line")); + grecs_error(ploc, 0, _("cannot parse #line line: %s"), + wordsplit_strerror(&ws)); else { if (ws.ws_wordc == 2) rc = assign_locus(ppoint, NULL, @@ -418,7 +419,8 @@ grecs_parse_line_directive_cpp(char *text, grecs_locus_t *ploc, struct wordsplit ws; if (wordsplit(text, &ws, WRDSF_DEFFLAGS)) { - grecs_error(ploc, 0, _("cannot parse #line line")); + grecs_error(ploc, 0, _("cannot parse #line line: %s"), + wordsplit_strerror(&ws)); return; } else if (ws.ws_wordc < 3) grecs_error(ploc, 0, _("invalid #line statement")); |