mirror of
https://github.com/matrix-construct/construct
synced 2025-01-03 19:34:29 +01:00
src/s_conf: Moved error notification to proper place
Previously it was in src/ircd.c, but accroding to jilles, this is a better place for the notification. This changes a patch made inadef4da10c
and amended in65d921173c
andf6f049070e
.
This commit is contained in:
parent
97b0e99e2a
commit
f951460ae9
2 changed files with 1 additions and 7 deletions
|
@ -619,13 +619,6 @@ main(int argc, char *argv[])
|
|||
inotice("starting %s ...", ircd_version);
|
||||
inotice("%s", rb_lib_version());
|
||||
}
|
||||
|
||||
/* Make sure config file exists -- Quora */
|
||||
if( access( ConfigFileEntry.configfile, F_OK|R_OK ) == -1 ) {
|
||||
inotice("FATAL: No config file found at %s, exiting",
|
||||
ConfigFileEntry.configfile);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
/* Init the event subsystem */
|
||||
rb_lib_init(ircd_log_cb, ircd_restart_cb, ircd_die_cb, !server_state_foreground, maxconnections, DNODE_HEAP_SIZE, FD_HEAP_SIZE);
|
||||
|
|
|
@ -1358,6 +1358,7 @@ read_conf_files(int cold)
|
|||
if(cold)
|
||||
{
|
||||
ilog(L_MAIN, "Failed in reading configuration file %s", filename);
|
||||
inotice("Failed in reading configuration file %s, aborting", filename);
|
||||
exit(-1);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue