mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
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:
parent
4bb7b4621f
commit
8d4abc1104
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user