diff --git a/src/ssb.db.c b/src/ssb.db.c index 9b703fc1b..5c7312fa2 100644 --- a/src/ssb.db.c +++ b/src/ssb.db.c @@ -946,7 +946,12 @@ bool tf_ssb_db_blob_store(tf_ssb_t* ssb, const uint8_t* blob, size_t size, char* { if (sqlite3_bind_text(statement, 1, id, -1, NULL) == SQLITE_OK && sqlite3_bind_blob(statement, 2, blob, size, NULL) == SQLITE_OK) { - result = sqlite3_step(statement) == SQLITE_DONE; + int r = sqlite3_step(statement); + result = r == SQLITE_DONE; + if (!result) + { + tf_printf("Blob store failed: %s.", sqlite3_errmsg(db)); + } rows = sqlite3_changes(db); } else