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 in adef4da10c and amended in 65d921173c and f6f049070e.
This commit is contained in:
Quora Dodrill 2013-08-14 14:28:11 -07:00
parent 97b0e99e2a
commit f951460ae9
2 changed files with 1 additions and 7 deletions

View file

@ -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);

View file

@ -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