mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 07:46:02 +01:00
Also print sqlite's error message
This commit is contained in:
parent
af253296d9
commit
75bab3f525
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ prepare_statement(sqlite3* session, const char* statement)
|
|||
sqlite3_stmt* pp_stmt = NULL;
|
||||
|
||||
if (sqlite3_prepare_v2(session, statement, -1, &pp_stmt, &pz_tail) != SQLITE_OK) {
|
||||
girara_error("Failed to prepare query: %s", statement);
|
||||
girara_error("Failed to prepare query: %s - %s", statement, sqlite3_errmsg(session));
|
||||
sqlite3_finalize(pp_stmt);
|
||||
return NULL;
|
||||
} else if (pz_tail && *pz_tail != '\0') {
|
||||
|
|
Loading…
Reference in a new issue