aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwarptangent <warptangent@tutanota.com>2016-02-29 17:51:21 -0800
committerwarptangent <warptangent@tutanota.com>2016-02-29 17:52:54 -0800
commitc9c4060dc6b276e162fcb5d3f25f02ee7a8bd1b7 (patch)
treef70aab7bb805aedf4f5bf74e8bf2413ccf34ee57 /src
parentMerge pull request #689 (diff)
downloadmonero-c9c4060dc6b276e162fcb5d3f25f02ee7a8bd1b7.tar.xz
BlockchainLMDB: Add height and db error to exception
Diffstat (limited to 'src')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index e6d20a9e0..e94880f43 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -2821,7 +2821,7 @@ uint8_t BlockchainLMDB::get_hard_fork_version(uint64_t height) const
MDB_val val_ret;
auto result = mdb_cursor_get(m_cur_hf_versions, &val_key, &val_ret, MDB_SET);
if (result == MDB_NOTFOUND || result)
- throw0(DB_ERROR("Error attempting to retrieve a hard fork version from the db"));
+ throw0(DB_ERROR(std::string("Error attempting to retrieve a hard fork version at height ").append(boost::lexical_cast<std::string>(height)).append(" from the db: ").append(mdb_strerror(result)).c_str()));
uint8_t ret = *(const uint8_t*)val_ret.mv_data;
TXN_POSTFIX_RDONLY();