From fdf669035e537139d2440c8c42f16163e7dbd968 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 13 May 2013 06:52:37 -0700 Subject: [PATCH] Output the leveldb error message if we can't open/create the DB. --- src/cpp/ripple/Application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpp/ripple/Application.cpp b/src/cpp/ripple/Application.cpp index 9840ffc9d..4c6cd9334 100644 --- a/src/cpp/ripple/Application.cpp +++ b/src/cpp/ripple/Application.cpp @@ -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); }