You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib.rs
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -95,8 +95,9 @@ pub enum Error {
95
95
NoFeature,
96
96
/// Returned when calling methods requiring a env var to exist, but it's not
97
97
NoEnvVar,
98
-
/// Returned when calling methods requiring either a feature or env var, but both are absent
99
-
NeitherFeatureNorEnvVar,
98
+
/// Returned when calling methods requiring the bitcoind executable but none is found
99
+
/// (no feature, no `BITCOIND_EXE`, no `bitcoind` in `PATH` )
100
+
NoBitcoindExecutableFound,
100
101
/// Returned when calling methods requiring either a feature or anv var, but both are present
101
102
BothFeatureAndEnvVar,
102
103
/// Wrapper of early exit status
@@ -112,7 +113,7 @@ impl fmt::Debug for Error {
112
113
Error::Rpc(e) => write!(f,"{:?}", e),
113
114
Error::NoFeature => write!(f,"Called a method requiring a feature to be set, but it's not"),
114
115
Error::NoEnvVar => write!(f,"Called a method requiring env var `BITCOIND_EXE` to be set, but it's not"),
115
-
Error::NeitherFeatureNorEnvVar => write!(f,"Called a method requiring env var `BITCOIND_EXE` or a feature to be set, but neither are set"),
116
+
Error::NoBitcoindExecutableFound => write!(f,"`bitcoind` executable is required, provide it with one of the following: set env var `BITCOIND_EXE` or use a feature like \"22_0\" or have `bitcoind` executable in the `PATH`"),
116
117
Error::BothFeatureAndEnvVar => write!(f,"Called a method requiring env var `BITCOIND_EXE` or a feature to be set, but both are set"),
117
118
Error::EarlyExit(e) => write!(f,"The bitcoind process terminated early with exit code {}", e),
118
119
Error::BothDirsSpecified => write!(f,"tempdir and staticdir cannot be enabled at same time in configuration options")
0 commit comments