There was an error while loading. Please reload this page.
1 parent f5893d9 commit 1d22485Copy full SHA for 1d22485
src/args.rs
@@ -1,5 +1,5 @@
1
use crate::bug_report;
2
-use anyhow::{anyhow, Result};
+use anyhow::{anyhow, Context, Result};
3
use asyncgit::sync::RepoPath;
4
use clap::{
5
builder::ArgPredicate, crate_authors, crate_description,
@@ -49,7 +49,12 @@ pub fn process_cmdline() -> Result<CliArgs> {
49
.map_or_else(|| PathBuf::from("theme.ron"), PathBuf::from);
50
51
let confpath = get_app_config_path()?;
52
-fs::create_dir_all(&confpath)?;
+fs::create_dir_all(&confpath).with_context(|| {
53
+format!(
54
+"failed to create config directory: {}",
55
+confpath.display()
56
+)
57
+})?;
58
let theme = confpath.join(arg_theme);
59
60
let notify_watcher: bool =
0 commit comments