From 90e6a88e7cb1ea4e03d26c170c2e115b8e39bf44 Mon Sep 17 00:00:00 2001 From: Greg Coppola Date: Thu, 13 Jan 2022 13:15:54 +0000 Subject: [PATCH] use expect instead of assert --- testnet/stacks-node/src/config.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }