From d22690ad41e90c5f34c587e75994e865c2395912 Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 6 Aug 2025 16:32:48 +0100 Subject: =?UTF-8?q?=E2=9C=A8feat:=20improve=20error=20handling=20for=20mis?= =?UTF-8?q?sing=20apps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/error.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index 25fc685..f946f58 100644 --- a/src/error.rs +++ b/src/error.rs @@ -31,10 +31,7 @@ pub enum Error { impl core::fmt::Display for Error { fn fmt(&self, fmt: &mut core::fmt::Formatter) -> core::result::Result<(), std::fmt::Error> { match self { - Error::Io(e) => match e.kind() { - std::io::ErrorKind::NotFound => write!(fmt, "File or directory not found"), - _ => write!(fmt, "IO error: {e}"), - }, + Error::Io(e) => write!(fmt, "{e}"), Error::NotFound(name) => write!(fmt, "Application '{name}' not found"), Error::Json(e) => write!(fmt, "JSON error: {e}"), Error::Http(e) => write!(fmt, "HTTP error: {e}"), -- cgit v1.2.3