chore: add reference to the troubleshooting page on mdbx::Error::Access (#13151)

This commit is contained in:
joshieDo
2024-12-05 15:21:01 +00:00
committed by GitHub
parent 6f0cfefe51
commit 3ccbda8e1a

View File

@ -97,7 +97,7 @@ pub enum Error {
#[error("invalid parameter specified")] #[error("invalid parameter specified")]
DecodeError, DecodeError,
/// The environment opened in read-only. /// 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, Access,
/// Database is too large for the current system. /// Database is too large for the current system.
#[error("database is too large for the current system")] #[error("database is too large for the current system")]
@ -238,7 +238,10 @@ mod tests {
#[test] #[test]
fn test_description() { 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()); assert_eq!("file is not an MDBX file", Error::Invalid.to_string());
} }