mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Add better LMDB error output (#3263)
This commit is contained in:
parent
d5b523248b
commit
31bd2d923a
1 changed files with 2 additions and 3 deletions
|
@ -38,9 +38,8 @@ pub enum Error {
|
||||||
/// Couldn't find what we were looking for
|
/// Couldn't find what we were looking for
|
||||||
#[fail(display = "DB Not Found Error: {}", _0)]
|
#[fail(display = "DB Not Found Error: {}", _0)]
|
||||||
NotFoundErr(String),
|
NotFoundErr(String),
|
||||||
/// Wraps an error originating from RocksDB (which unfortunately returns
|
/// Wraps an error originating from LMDB
|
||||||
/// string errors).
|
#[fail(display = "LMDB error: {} ", _0)]
|
||||||
#[fail(display = "LMDB error")]
|
|
||||||
LmdbErr(lmdb::error::Error),
|
LmdbErr(lmdb::error::Error),
|
||||||
/// Wraps a serialization error for Writeable or Readable
|
/// Wraps a serialization error for Writeable or Readable
|
||||||
#[fail(display = "Serialization Error")]
|
#[fail(display = "Serialization Error")]
|
||||||
|
|
Loading…
Reference in a new issue