mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
use expect instead of assert
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user