From c72e431e92c04495a960cb51cf39fc522d858860 Mon Sep 17 00:00:00 2001 From: Naz Date: Tue, 5 Aug 2025 08:03:03 +0100 Subject: =?UTF-8?q?=E2=9C=A8feat:=20add=20some=20validation=20for=20AppIma?= =?UTF-8?q?ge=20downloads?= 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 b473469..25fc685 100644 --- a/src/error.rs +++ b/src/error.rs @@ -10,6 +10,7 @@ pub enum Error { url: String, source: reqwest::Error, }, + InvalidAppImage, #[from] Io(std::io::Error), @@ -56,6 +57,9 @@ impl core::fmt::Display for Error { write!(fmt, "Failed to download from {url}: {source}") } } + Error::InvalidAppImage => { + write!(fmt, "Invalid AppImage") + } } } } -- cgit v1.2.3