Skip to content

Commit d8cfe79

Browse files
committedMay 13, 2014
Better error reporting for LevelDB backend
1 parent 925de1b commit d8cfe79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎db-leveldb.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DBLevelDB::DBLevelDB(const std::string &mapdir)
2525
options.create_if_missing = false;
2626
leveldb::Status status = leveldb::DB::Open(options, mapdir + "map.db", &db);
2727
if (!status.ok()) {
28-
throw std::runtime_error("Failed to open Database");
28+
throw std::runtime_error(std::string("Failed to open Database: ") + status.ToString());
2929
}
3030

3131
loadPosCache();

0 commit comments

Comments
 (0)
Please sign in to comment.