improve error message

This commit is contained in:
bert hubert 2018-12-23 16:18:37 +01:00
parent 4c1b5e404c
commit 654985e981
1 changed files with 2 additions and 2 deletions

View File

@ -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();