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:
parent
d98fe85a58
commit
86b55a0fb0
|
@ -721,7 +721,8 @@ void RawDatabase::process()
|
||||||
&stmt, &compileTail))
|
&stmt, &compileTail))
|
||||||
!= SQLITE_OK) {
|
!= SQLITE_OK) {
|
||||||
qWarning() << "Failed to prepare statement" << anonymizeQuery(query.query)
|
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;
|
goto cleanupStatements;
|
||||||
}
|
}
|
||||||
query.statements += stmt;
|
query.statements += stmt;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user