forked from agroal/pgagroal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[agroal#355] Add line number field in various configuration structs
Added a `lineno` field into structures `struct hba` and `struct server`. This simplifies error reporting, since it is now possible to drive the user to the line number that is causing a problem. Thanks to this, it is possible to provide better messages to the users about misconfigurations. For example, if the user mispells an entry into the HBA file: ``` FATAL configuration.c:1162 Unknown HBA type: HOSTSS (/etc/pgagroal/pgagroal_hba.conf:7) ``` Changes to a few log/warn messages to become more easy to read. Close agroal#355
- Loading branch information
Showing
2 changed files
with
28 additions
and
12 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