Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/args.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::bug_report;
use anyhow::{anyhow, Result};
use anyhow::{anyhow, Context, Result};
use asyncgit::sync::RepoPath;
use clap::{
builder::ArgPredicate, crate_authors, crate_description,
Expand Down Expand Up @@ -49,7 +49,12 @@ pub fn process_cmdline() -> Result<CliArgs> {
.map_or_else(|| PathBuf::from("theme.ron"), PathBuf::from);

let confpath = get_app_config_path()?;
fs::create_dir_all(&confpath)?;
fs::create_dir_all(&confpath).with_context(|| {
format!(
"failed to create config directory: {}",
confpath.display()
)
})?;
let theme = confpath.join(arg_theme);

let notify_watcher: bool =
Expand Down