If can't connect to db, bail instead of loading config
This commit is contained in:
parent
06f480acf8
commit
2882693791
|
@ -63,7 +63,9 @@ void zmLoadConfig() {
|
||||||
closedir(configSubFolder);
|
closedir(configSubFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
zmDbConnect();
|
if ( !zmDbConnect() ) {
|
||||||
|
Fatal("Can't connect to db. Can't continue.");
|
||||||
|
}
|
||||||
config.Load();
|
config.Load();
|
||||||
config.Assign();
|
config.Assign();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue