aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 4bd3886..6bb6efb 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -90,7 +90,7 @@ impl Config {
fn load_user_config() -> anyhow::Result<Option<Config>> {
let project_dirs = directories::ProjectDirs::from("", "", "nitrocli")
- .ok_or_else(|| anyhow::anyhow!("Could not determine the nitrocli application directory"))?;
+ .context("Could not determine the nitrocli application directory")?;
let path = project_dirs.config_dir().join(CONFIG_FILE);
if path.is_file() {
read_config_file(&path).map(Some)