From 3ccbda8e1a9a5fb8d492dd92b56abd65c30b5e2b Mon Sep 17 00:00:00 2001 From: joshieDo <93316087+joshieDo@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:21:01 +0000 Subject: [PATCH] chore: add reference to the troubleshooting page on `mdbx::Error::Access` (#13151) --- crates/storage/libmdbx-rs/src/error.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/storage/libmdbx-rs/src/error.rs b/crates/storage/libmdbx-rs/src/error.rs index a70488b08262..a8c745565976 100644 --- a/crates/storage/libmdbx-rs/src/error.rs +++ b/crates/storage/libmdbx-rs/src/error.rs @@ -97,7 +97,7 @@ pub enum Error { #[error("invalid parameter specified")] DecodeError, /// The environment opened in read-only. - #[error("the environment opened in read-only")] + #[error("the environment opened in read-only, check for more")] Access, /// Database is too large for the current system. #[error("database is too large for the current system")] @@ -238,7 +238,10 @@ mod tests { #[test] fn test_description() { - assert_eq!("the environment opened in read-only", Error::from_err_code(13).to_string()); + assert_eq!( + "the environment opened in read-only, check for more", + Error::from_err_code(13).to_string() + ); assert_eq!("file is not an MDBX file", Error::Invalid.to_string()); }