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