mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Implement DatabaseException for databases
This commit is contained in:
parent
8b940c005f
commit
8ba6d9f227
4 changed files with 17 additions and 12 deletions
|
@ -47,7 +47,7 @@ SQLite format specification:
|
|||
|
||||
#define SQLRES(s, r, m) \
|
||||
if ((s) != (r)) { \
|
||||
throw FileNotGoodException(std::string(m) + ": " +\
|
||||
throw DatabaseException(std::string(m) + ": " +\
|
||||
sqlite3_errmsg(m_database)); \
|
||||
}
|
||||
#define SQLOK(s, m) SQLRES(s, SQLITE_OK, m)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue