mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-05 16:57:56 +00:00
Output the leveldb error message if we can't open/create the DB.
This commit is contained in:
@@ -183,7 +183,9 @@ void Application::setup()
|
|||||||
leveldb::Status status = leveldb::DB::Open(options, (theConfig.DATA_DIR / "hashnode").string(), &mHashNodeLDB);
|
leveldb::Status status = leveldb::DB::Open(options, (theConfig.DATA_DIR / "hashnode").string(), &mHashNodeLDB);
|
||||||
if (!status.ok() || !mHashNodeLDB)
|
if (!status.ok() || !mHashNodeLDB)
|
||||||
{
|
{
|
||||||
cLog(lsFATAL) << "Unable to open/create hash node db: " << (theConfig.DATA_DIR / "hashnode").string();
|
cLog(lsFATAL) << "Unable to open/create hash node db: "
|
||||||
|
<< (theConfig.DATA_DIR / "hashnode").string()
|
||||||
|
<< " " << status.ToString();
|
||||||
StopSustain();
|
StopSustain();
|
||||||
exit(3);
|
exit(3);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user