|
1 | 1 | use crate::bug_report;
|
2 | | -use anyhow::{anyhow, Result}; |
| 2 | +use anyhow::{anyhow, Context,Result}; |
3 | 3 | use asyncgit::sync::RepoPath;
|
4 | 4 | use clap::{
|
5 | 5 | builder::ArgPredicate, crate_authors, crate_description,
|
@@ -49,7 +49,12 @@ pub fn process_cmdline() -> Result<CliArgs> {
|
49 | 49 | .map_or_else(|| PathBuf::from("theme.ron"), PathBuf::from);
|
50 | 50 |
|
51 | 51 | let confpath = get_app_config_path()?;
|
52 | | - fs::create_dir_all(&confpath)?; |
| 52 | + fs::create_dir_all(&confpath).with_context(|| { |
| 53 | + format!( |
| 54 | + "failed to create config directory: {}", |
| 55 | + confpath.display() |
| 56 | + ) |
| 57 | + })?; |
53 | 58 | let theme = confpath.join(arg_theme);
|
54 | 59 |
|
55 | 60 | let notify_watcher: bool =
|
|
0 commit comments