Output the leveldb error message if we can't open/create the DB.

This commit is contained in:
JoelKatz
2013-05-13 06:52:37 -07:00
parent cd08616cd2
commit 312ed4ec7f

View File

@@ -183,7 +183,9 @@ void Application::setup()
leveldb::Status status = leveldb::DB::Open(options, (theConfig.DATA_DIR / "hashnode").string(), &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();
exit(3);
}