mirror of https://gitee.com/bigwinds/arangodb
style cleanup
This commit is contained in:
parent
431a74a962
commit
2379db10d7
|
@ -286,7 +286,7 @@ void ArangoGlobalContext::normalizePath(std::vector<std::string>& paths,
|
|||
}
|
||||
|
||||
void ArangoGlobalContext::normalizePath(std::string& path,
|
||||
const char* whichPath, bool fatal) {
|
||||
char const* whichPath, bool fatal) {
|
||||
StringUtils::rTrimInPlace(path, TRI_DIR_SEPARATOR_STR);
|
||||
|
||||
if (!arangodb::basics::FileUtils::exists(path)) {
|
||||
|
@ -295,9 +295,9 @@ void ArangoGlobalContext::normalizePath(std::string& path,
|
|||
if (!fatal) {
|
||||
return;
|
||||
}
|
||||
LOG(ERR) << "failed to locate " << whichPath
|
||||
<< " directory, its neither available in '" << path
|
||||
<< "' nor in '" << directory << "'";
|
||||
LOG(FATAL) << "failed to locate " << whichPath
|
||||
<< " directory, its neither available in '" << path
|
||||
<< "' nor in '" << directory << "'";
|
||||
FATAL_ERROR_EXIT();
|
||||
}
|
||||
arangodb::basics::FileUtils::normalizePath(directory);
|
||||
|
|
Loading…
Reference in New Issue