If can't connect to db, bail instead of loading config

pull/3044/head
Isaac Connor 2020-03-04 14:13:44 -05:00
parent f96cc66b9d
commit 917c43a54b
1 changed files with 3 additions and 1 deletions

View File

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