Improve error messages when an exception occurs when fixing DBs
This commit is contained in:
parent
0984cf0d0c
commit
400d260230
|
@ -875,10 +875,10 @@ int ServiceSetup::fixDb()
|
||||||
config.rebuildDb();
|
config.rebuildDb();
|
||||||
#ifndef CPP_UTILITIES_DEBUG_BUILD
|
#ifndef CPP_UTILITIES_DEBUG_BUILD
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
cerr << Phrases::ErrorMessage << "Exception occurred when terminating server: " << Phrases::End << " " << e.what() << Phrases::EndFlush;
|
cerr << Phrases::ErrorMessage << "Exception occurred: " << Phrases::End << " " << e.what() << Phrases::EndFlush;
|
||||||
return EXIT_FAILURE + 4;
|
return EXIT_FAILURE + 4;
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
cerr << Phrases::ErrorMessage << "Unknown error occurred when terminating server." << Phrases::EndFlush;
|
cerr << Phrases::ErrorMessage << "Unknown error occurred." << Phrases::EndFlush;
|
||||||
return EXIT_FAILURE + 4;
|
return EXIT_FAILURE + 4;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue