diff --git a/testnet/stacks-node/src/config.rs b/testnet/stacks-node/src/config.rs index 7efbdd0b3..0d9e7eaf6 100644 --- a/testnet/stacks-node/src/config.rs +++ b/testnet/stacks-node/src/config.rs @@ -780,7 +780,10 @@ impl Config { pub fn get_estimates_path(&self) -> PathBuf { let mut path = self.get_chainstate_path(); path.push("estimates"); - assert!(fs::create_dir_all(&path).is_ok()); + fs::create_dir_all(&path).expect(&format!( + "Failed to create `estimates` directory at {}", + path.to_string_lossy() + )); path }