]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Improve error reporting from broken config files
authorSteve Hill <quagga@cheesy.sackheads.org>
Tue, 28 Jul 2009 20:36:14 +0000 (16:36 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 1 Sep 2015 19:44:10 +0000 (12:44 -0700)
commit13fbc82d86811ec2f53b7c925bda151eb4caf4e5
treebd24dfa9e43e49840af5f0d9a04a3c224430b4d3
parentc8a96aef3e1fb2025f3fb0f37cc4a0a75b72a0e7
lib: Improve error reporting from broken config files

* command.h: (config_from_file) Add variable to interface for line
      number reporting.
    * command.c: (config_from_file) Set & increment 'line_num' while parsing.
    * vty.c: (vty_read_file) Report parse errors in the correct order to
      stderr, with added line numbers.

Conflicts:
lib/command.c
lib/vty.c

Integrated in changes made to continue loading code even after failure
to read a line in properly as part of this cherry-pick
lib/command.c
lib/command.h
lib/vty.c