1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Implement DatabaseException for databases

This commit is contained in:
nerzhul
2016-05-17 09:59:02 +02:00
parent 8b940c005f
commit 8ba6d9f227
4 changed files with 17 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define ENSURE_STATUS_OK(s) \
if (!(s).ok()) { \
throw FileNotGoodException(std::string("LevelDB error: ") + \
throw DatabaseException(std::string("LevelDB error: ") + \
(s).ToString()); \
}