diff --git a/crates/interfaces/src/db.rs b/crates/interfaces/src/db.rs index a6f4ddca2a..3beb93f2e7 100644 --- a/crates/interfaces/src/db.rs +++ b/crates/interfaces/src/db.rs @@ -2,8 +2,8 @@ #[derive(Debug, thiserror::Error, PartialEq, Eq, Clone)] pub enum Error { /// Failed to open database. - #[error("{0:?}")] - DatabaseLocation(i32), + #[error("Failed to open database: {0:?}")] + FailedToOpen(i32), /// Failed to create a table in database. #[error("Table Creating error code: {0:?}")] TableCreation(i32), diff --git a/crates/storage/db/src/implementation/mdbx/mod.rs b/crates/storage/db/src/implementation/mdbx/mod.rs index 48b8e01dc1..1d6a768516 100644 --- a/crates/storage/db/src/implementation/mdbx/mod.rs +++ b/crates/storage/db/src/implementation/mdbx/mod.rs @@ -74,7 +74,7 @@ impl Env { ..Default::default() }) .open(path) - .map_err(|e| Error::DatabaseLocation(e.into()))?, + .map_err(|e| Error::FailedToOpen(e.into()))?, }; Ok(env)