improve error message
This commit is contained in:
parent
4c1b5e404c
commit
654985e981
|
@ -374,8 +374,8 @@ public:
|
||||||
void commit()
|
void commit()
|
||||||
{
|
{
|
||||||
closeCursors();
|
closeCursors();
|
||||||
if(mdb_txn_commit(d_txn)) {
|
if(int rc = mdb_txn_commit(d_txn)) {
|
||||||
throw std::runtime_error("committing");
|
throw std::runtime_error("committing: " + std::string(mdb_strerror(rc)));
|
||||||
}
|
}
|
||||||
d_parent->decRWTX();
|
d_parent->decRWTX();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue