X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Ffmsapp.cpp;h=01fcf9a6cecd912982072e8d056274345b03461c;hp=8a462e292a9b966f530b016ca7a839e022f6c288;hb=278ee758050cb7772cd95946688c5b40104f4d8b;hpb=dabd19d7f764b8275c9c8370c7b89675b6a78243 diff --git a/src/fmsapp.cpp b/src/fmsapp.cpp index 8a462e2..01fcf9a 100644 --- a/src/fmsapp.cpp +++ b/src/fmsapp.cpp @@ -162,7 +162,12 @@ int FMSApp::main(const std::vector &args) // so we need to set the working directory again int rval=chdir(m_workingdirectory.c_str()); - if(m_displayhelp) + if(VerifyDB()==false) + { + std::cout << "The FMS database failed verification. It is most likely corrupt!" << std::endl; + logger().fatal("The FMS database failed verification. It is most likely corrupt!"); + } + else if(m_displayhelp) { } else if(m_showoptions)