Add diagnostics

This commit is contained in:
Andrew Pamment 2017-10-19 13:01:10 +10:00
parent 237d27fe7a
commit 6b4cf60c7b

View File

@ -1141,6 +1141,7 @@ void file_search() {
rc = sqlite3_prepare_v2(db, sqlbuffer, -1, &res, 0); rc = sqlite3_prepare_v2(db, sqlbuffer, -1, &res, 0);
if (rc != SQLITE_OK) { if (rc != SQLITE_OK) {
s_printf("%s\n", sqlite3_errmsg(db));
sqlite3_finalize(res); sqlite3_finalize(res);
sqlite3_close(db); sqlite3_close(db);
for (i=0;i<searchterm_count;i++) { for (i=0;i<searchterm_count;i++) {