Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better error reporting for LevelDB backend
  • Loading branch information
sfan5 committed May 13, 2014
1 parent 925de1b commit d8cfe79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db-leveldb.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit d8cfe79

Please sign in to comment.