Add better LMDB error output (#3263)

This commit is contained in:
Yeastplume 2020-03-09 13:04:06 +00:00 committed by GitHub
parent d5b523248b
commit 31bd2d923a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,9 +38,8 @@ pub enum Error {
/// Couldn't find what we were looking for
#[fail(display = "DB Not Found Error: {}", _0)]
NotFoundErr(String),
/// Wraps an error originating from RocksDB (which unfortunately returns
/// string errors).
#[fail(display = "LMDB error")]
/// Wraps an error originating from LMDB
#[fail(display = "LMDB error: {} ", _0)]
LmdbErr(lmdb::error::Error),
/// Wraps a serialization error for Writeable or Readable
#[fail(display = "Serialization Error")]