]> git.ipfire.org Git - thirdparty/bird.git/commit
Parser: Display token where parser fell down cf-err-show-line 23/head
authorPavel Tvrdik <pawel.tvrdik@gmail.com>
Fri, 11 Nov 2016 17:40:03 +0000 (18:40 +0100)
committerJan Maria Matejka <mq@ucw.cz>
Mon, 13 Aug 2018 12:10:00 +0000 (14:10 +0200)
commit4d62bdd636e7dff1f9a72c794ef20fe0f5514772
tree82b36f60ade7dd7710fcc1abca76309ea7aff433
parent179e2a093413f90dc5ce3835c2f64cb40cf7d217
Parser: Display token where parser fell down

For example I misspelled device protocol
  bird: bird.conf, line 11 (nearby 'demice'): syntax error

It would be better to display whole err line. We can read it from
config->err_file_name again and display the line at config->err_lino.
conf/conf.c
conf/conf.h
nest/cli.c
sysdep/unix/main.c