We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd46b9a commit d6bcc89Copy full SHA for d6bcc89
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,9 @@ 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!("failed to write config to {}", confpath.display())
54
+ })?;
55
let theme = confpath.join(arg_theme);
56
57
let notify_watcher: bool =
0 commit comments