Skip to content

Commit

Permalink
chore: add reference to the troubleshooting page on `mdbx::Error::Acc…
Browse files Browse the repository at this point in the history
  • Loading branch information
joshieDo authored Dec 5, 2024
1 parent 6f0cfef commit 3ccbda8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/storage/libmdbx-rs/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://reth.rs/run/troubleshooting.html> for more")]
Access,
/// Database is too large for the current system.
#[error("database is too large for the current system")]
Expand Down Expand Up @@ -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 <https://reth.rs/run/troubleshooting.html> for more",
Error::from_err_code(13).to_string()
);

assert_eq!("file is not an MDBX file", Error::Invalid.to_string());
}
Expand Down

0 comments on commit 3ccbda8

Please sign in to comment.