Ignore errors when clearing cache, closes #91

This commit is contained in:
sharkdp 2018-05-13 09:57:11 +02:00 committed by David Peter
parent ca865f9d26
commit b9c780c8c8
1 changed files with 2 additions and 2 deletions

View File

@ -209,11 +209,11 @@ fn run() -> Result<()> {
assets.save()?;
} else if cache_matches.is_present("clear") {
print!("Clearing theme set cache ... ");
fs::remove_file(theme_set_path())?;
fs::remove_file(theme_set_path()).ok();
println!("okay");
print!("Clearing syntax set cache ... ");
fs::remove_file(syntax_set_path())?;
fs::remove_file(syntax_set_path()).ok();
println!("okay");
} else if cache_matches.is_present("config-dir") {
println!("{}", config_dir());