mirror of https://gitee.com/bigwinds/arangodb
improve error message
This commit is contained in:
parent
ddbfed8b34
commit
97b7463683
|
@ -71,7 +71,7 @@ void EngineSelectorFeature::prepare() {
|
|||
if (basics::FileUtils::isRegularFile(_engineFilePath)){
|
||||
std::string content = basics::FileUtils::slurp(_engineFilePath);
|
||||
if (content != _engine) {
|
||||
LOG_TOPIC(FATAL, Logger::STARTUP) << "engine selector - content of 'ENGINE' file and command-line option do not match: '" << content << "' != '" << _engine << "'";
|
||||
LOG_TOPIC(FATAL, Logger::STARTUP) << "content of 'ENGINE' file '" << _engineFilePath << "' and command-line/configuration option value do not match: '" << content << "' != '" << _engine << "'. please validate the command-line/configuration option value of '--server.storage-engine' or use a different database directory if the change is intentional";
|
||||
FATAL_ERROR_EXIT();
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ void EngineSelectorFeature::start() {
|
|||
try {
|
||||
basics::FileUtils::spit(_engineFilePath, _engine);
|
||||
} catch (std::exception const& ex) {
|
||||
LOG_TOPIC(FATAL, Logger::STARTUP) << "engine selector - unable to write ENGINE file" << ex.what();
|
||||
LOG_TOPIC(FATAL, Logger::STARTUP) << "unable to write 'ENGINE' file '" << _engineFilePath << "': " << ex.what();
|
||||
FATAL_ERROR_EXIT();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue