diff --git a/src/zm_config.cpp b/src/zm_config.cpp index 7d75042ba..9c99172e9 100644 --- a/src/zm_config.cpp +++ b/src/zm_config.cpp @@ -63,7 +63,9 @@ void zmLoadConfig() { closedir(configSubFolder); } - zmDbConnect(); + if ( !zmDbConnect() ) { + Fatal("Can't connect to db. Can't continue."); + } config.Load(); config.Assign();