db: fix error message in db_sqlite3_commit_tx()

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

Changelog-None
This commit is contained in:
Sebastian Falbesoner 2020-05-05 23:01:21 +02:00 committed by Rusty Russell
parent 4bb7b4621f
commit 8d4abc1104

View File

@ -157,7 +157,7 @@ static bool db_sqlite3_commit_tx(struct db *db)
char *errmsg;
err = sqlite3_exec(db->conn, "COMMIT;", NULL, NULL, &errmsg);
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 true;