diff options
author | Daniel Mueller <deso@posteo.net> | 2020-09-29 20:30:49 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-09-29 20:30:49 -0700 |
commit | c85ea93f1ee1a9c06c3cbb8e6f78614ecd104149 (patch) | |
tree | 0c745442da80c4b2fd1c0adbbcd96aa55f84c113 | |
parent | ac44b0a26a7f5ed35ddbc943b642df07503d5666 (diff) | |
download | nitrocli-c85ea93f1ee1a9c06c3cbb8e6f78614ecd104149.tar.gz nitrocli-c85ea93f1ee1a9c06c3cbb8e6f78614ecd104149.tar.bz2 |
fixup! Use standard configuration file locations
-rw-r--r-- | src/config.rs | 2 |
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) |