Browse Source

db: fix error message in db_sqlite3_commit_tx()

This probably happened through copy-and-paste from
db_sqlite3_begin_tx().

Changelog-None
nifty/pset-pre
Sebastian Falbesoner 5 years ago
committed by Rusty Russell
parent
commit
8d4abc1104
  1. 2
      wallet/db_sqlite3.c

2
wallet/db_sqlite3.c

@ -157,7 +157,7 @@ static bool db_sqlite3_commit_tx(struct db *db)
char *errmsg; char *errmsg;
err = sqlite3_exec(db->conn, "COMMIT;", NULL, NULL, &errmsg); err = sqlite3_exec(db->conn, "COMMIT;", NULL, NULL, &errmsg);
if (err != SQLITE_OK) { if (err != SQLITE_OK) {
db->error = tal_fmt(db, "Failed to begin a transaction: %s", errmsg); db->error = tal_fmt(db, "Failed to commit a transaction: %s", errmsg);
return false; return false;
} }
return true; return true;

Loading…
Cancel
Save