diff options
| author | Alexander Barton <alex@barton.de> | 2024-01-21 19:58:01 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2024-01-21 20:15:47 +0100 |
| commit | 47d3872c607febc4ad56c24fa559828f96b6a208 (patch) | |
| tree | e4b6ee8c46f404397ba23a3139d00478a6a771e4 /src | |
| parent | b4c8e74ccb2cb95e492323b8b39950b203e0262f (diff) | |
| download | ngircd-47d3872c607febc4ad56c24fa559828f96b6a208.tar.gz ngircd-47d3872c607febc4ad56c24fa559828f96b6a208.zip | |
Don't show the default config file name on config errors
The configuration can be set in drop-in files in the include directory, too, so it is not clear in which file it is actually missing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index eaa5e932..b87979c3 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -2129,8 +2129,7 @@ Validate_Config(bool Configtest, bool Rehash) if (!Conf_ServerName[0] || !strchr(Conf_ServerName, '.')) { config_valid = false; Config_Error(LOG_ALERT, - "No (valid) server name configured in \"%s\" (section 'Global': 'Name')!", - NGIRCd_ConfFile); + "No (valid) server name configured (section 'Global': 'Name')!"); if (!Configtest && !Rehash) { Config_Error(LOG_ALERT, "%s exiting due to fatal errors!", @@ -2144,8 +2143,7 @@ Validate_Config(bool Configtest, bool Rehash) /* No administrative contact configured! */ config_valid = false; Config_Error(LOG_ALERT, - "No administrator email address configured in \"%s\" ('AdminEMail')!", - NGIRCd_ConfFile); + "No administrator email address configured ('AdminEMail')!"); if (!Configtest) { Config_Error(LOG_ALERT, "%s exiting due to fatal errors!", |