Skip to content

Commit

Permalink
Add better LMDB error output (#3263)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeastplume committed Mar 9, 2020
1 parent d5b5232 commit 31bd2d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions store/src/lmdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 31bd2d9

Please sign in to comment.