Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: allow empty configs, but prevent bad configs (#4394)
Allows again empty configs and improves support for detecting some types of invalid configs: - Adds reporting the line with the bad key position that makes the config invalid. ``` nats-server: config is invalid (foo.conf:1:2) nats-server: error parsing include file 'included.conf', config is invalid (included.conf:2:2) ``` - Fixes a few tests with trailing braces which were being handled as keys and ignored before.
- Loading branch information
Showing
5 changed files
with
188 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters