mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-13 18:30:27 +00:00
Log "Can't read MOTD file" as "configuration error"
Now this error message is displayed in the console without debug prefix when running the configuration test (--configtest).
This commit is contained in:
parent
8927700b22
commit
b856a58051
@ -668,7 +668,7 @@ Read_Motd(const char *filename)
|
|||||||
|
|
||||||
fp = fopen(filename, "r");
|
fp = fopen(filename, "r");
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
Log(LOG_WARNING, "Can't read MOTD file \"%s\": %s",
|
Config_Error(LOG_WARNING, "Can't read MOTD file \"%s\": %s",
|
||||||
filename, strerror(errno));
|
filename, strerror(errno));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user