diff options
| author | Naz <ndpm13@ch-naseem.com> | 2025-08-01 09:47:04 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2025-08-01 09:47:04 +0100 |
| commit | 1b50c5ce06d2356124991fa48e6881f61f646ca3 (patch) | |
| tree | e291498bc9b03d16ba16ecb882f7724d57853eb3 /src/error.rs | |
| parent | 180fe06facf1f8b4796df69a42596643990b9d32 (diff) | |
🐛fix: exit with non-zero status when error occurs
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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}"), } } } |
