From c85ea93f1ee1a9c06c3cbb8e6f78614ecd104149 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Tue, 29 Sep 2020 20:30:49 -0700 Subject: fixup! Use standard configuration file locations --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> { 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) -- cgit v1.2.3