From 50b8fc8520ead37ec7760a530fbb3ea4e13ab214 Mon Sep 17 00:00:00 2001 From: mohammedmaali Date: Sun, 30 Jun 2024 00:15:29 -0400 Subject: [PATCH] unix style changes --- src/unix/errors.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unix/errors.rs b/src/unix/errors.rs index ce23520..2bcfd63 100644 --- a/src/unix/errors.rs +++ b/src/unix/errors.rs @@ -7,6 +7,7 @@ pub enum GhostError { CouldNotGetExe(String), CouldNotUnlinkExe(String), UnsupportedPlatform, + CouldNotFindFile(String) } impl Error for GhostError {} @@ -23,6 +24,9 @@ impl fmt::Display for GhostError { GhostError::CouldNotGetExe(error) => { write!(f, "FAILED TO GET EXE PATH ERROR: {}", error) }, + GhostError::CouldNotFindFile(error) => { + write!(f, "Could not find file to dispose: {}", error) + }, GhostError::CouldNotUnlinkExe(error) => write!(f, "FAILED TO UNLINK THE CURRENT EXE FOR CURRENT PROCESS: {}", error), } }