diff --git a/pwsp-lib/src/utils/config.rs b/pwsp-lib/src/utils/config.rs index c937b27..79e1f8f 100644 --- a/pwsp-lib/src/utils/config.rs +++ b/pwsp-lib/src/utils/config.rs @@ -1,7 +1,7 @@ -use anyhow::Result; +use anyhow::{Context, Result}; use std::path::PathBuf; pub fn get_config_path() -> Result { - let config_path = dirs::config_dir().expect("Failed to obtain config dir"); + let config_path = dirs::config_dir().context("Failed to obtain config dir")?; Ok(config_path.join("pwsp")) }