From 1b50c5ce06d2356124991fa48e6881f61f646ca3 Mon Sep 17 00:00:00 2001 From: Naz Date: Fri, 1 Aug 2025 09:47:04 +0100 Subject: =?UTF-8?q?=F0=9F=90=9Bfix:=20exit=20with=20non-zero=20status=20wh?= =?UTF-8?q?en=20error=20occurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/error.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index 3c51529..39c421d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -18,6 +18,9 @@ pub enum Error { #[from] EnvVar(std::env::VarError), + + #[from] + IndicatifTemplate(indicatif::style::TemplateError), } impl core::fmt::Display for Error { @@ -32,6 +35,7 @@ impl core::fmt::Display for Error { Error::Http(e) => write!(fmt, "HTTP error: {e}"), Error::EnvVar(e) => write!(fmt, "Environment variable error: {e}"), Error::InvalidPath => write!(fmt, "Invalid path provided"), + Error::IndicatifTemplate(e) => write!(fmt, "Progress bar template error: {e}"), } } } -- cgit v1.2.3