Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(db): show full sqlite error message
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonybilinski committed Oct 20, 2019
1 parent d98fe85 commit 86b55a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/persistence/db/rawdatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 86b55a0

Please sign in to comment.