From d5f737f402e9298ca49b1451e0e7868565666bfc Mon Sep 17 00:00:00 2001 From: rhysd Date: Mon, 11 Oct 2021 16:47:48 +0900 Subject: [PATCH] show skip message when asset cache is not found --- src/bin/bat/assets.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/bin/bat/assets.rs b/src/bin/bat/assets.rs index b775a4d9..26d599b2 100644 --- a/src/bin/bat/assets.rs +++ b/src/bin/bat/assets.rs @@ -1,5 +1,6 @@ use std::borrow::Cow; use std::fs; +use std::io; use clap::crate_version; @@ -52,6 +53,14 @@ pub fn assets_from_cache_or_binary(use_custom_assets: bool) -> Result { + println!("skipped (not present)"); + } + Err(err) => { + println!("could not remove the cache file {:?}: {}", &path, err); + } + Ok(_) => println!("okay"), + } }