diff options
author | Jan Maria Matejka <mq@ucw.cz> | 2018-09-11 16:55:41 +0200 |
---|---|---|
committer | Jan Maria Matejka <mq@ucw.cz> | 2018-09-11 16:58:09 +0200 |
commit | afa14f1868f2c753efdc81ce8e2c2d44e6bdd80e (patch) | |
tree | 68c418466255db01d1513ad341ccccf384981196 /conf/conf.c | |
parent | b1f6c439f55233338a5f7cca5070c70618fe7f1d (diff) |
Conf: Show the line:char position where the syntax error happens
Diffstat (limited to 'conf/conf.c')
-rw-r--r-- | conf/conf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/conf.c b/conf/conf.c index 7f4eb7e8..f64932f5 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -515,6 +515,7 @@ cf_error(char *msg, ...) va_end(args); new_config->err_msg = cfg_strdup(buf); new_config->err_lino = ifs->lino; + new_config->err_chno = ifs->chno - ifs->toklen + 1; new_config->err_file_name = ifs->file_name; cf_lex_unwind(); longjmp(conf_jmpbuf, 1); |