aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-09-29 20:30:49 -0700
committerDaniel Mueller <deso@posteo.net>2020-09-29 20:30:49 -0700
commitc85ea93f1ee1a9c06c3cbb8e6f78614ecd104149 (patch)
tree0c745442da80c4b2fd1c0adbbcd96aa55f84c113
parentac44b0a26a7f5ed35ddbc943b642df07503d5666 (diff)
downloadnitrocli-c85ea93f1ee1a9c06c3cbb8e6f78614ecd104149.tar.gz
nitrocli-c85ea93f1ee1a9c06c3cbb8e6f78614ecd104149.tar.bz2
fixup! Use standard configuration file locations
-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)