1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(db): show full sqlite error message

This commit is contained in:
Anthony Bilinski 2019-10-07 00:15:31 -07:00
parent d98fe85a58
commit 86b55a0fb0
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -721,7 +721,8 @@ void RawDatabase::process()
&stmt, &compileTail))
!= SQLITE_OK) {
qWarning() << "Failed to prepare statement" << anonymizeQuery(query.query)
<< "with error" << r;
<< "and returned" << r;
qWarning("The full error is %d: %s", sqlite3_errcode(sqlite), sqlite3_errmsg(sqlite));
goto cleanupStatements;
}
query.statements += stmt;