From 31bd2d923a0206e72b36243eeff7cb0ed75bd50d Mon Sep 17 00:00:00 2001 From: Yeastplume Date: Mon, 9 Mar 2020 13:04:06 +0000 Subject: [PATCH] Add better LMDB error output (#3263) --- store/src/lmdb.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/store/src/lmdb.rs b/store/src/lmdb.rs index c9b161bb9..03cf10ed8 100644 --- a/store/src/lmdb.rs +++ b/store/src/lmdb.rs @@ -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")]