mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-21 23:13:53 +01:00
Better error reporting for LevelDB backend
This commit is contained in:
parent
925de1bb79
commit
d8cfe79116
@ -25,7 +25,7 @@ DBLevelDB::DBLevelDB(const std::string &mapdir)
|
||||
options.create_if_missing = false;
|
||||
leveldb::Status status = leveldb::DB::Open(options, mapdir + "map.db", &db);
|
||||
if (!status.ok()) {
|
||||
throw std::runtime_error("Failed to open Database");
|
||||
throw std::runtime_error(std::string("Failed to open Database: ") + status.ToString());
|
||||
}
|
||||
|
||||
loadPosCache();
|
||||
|
Loading…
Reference in New Issue
Block a user