Skip to content

Commit

Permalink
unix style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brohamgoham committed Jun 30, 2024
1 parent 41399f8 commit 50b8fc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub enum GhostError {
CouldNotGetExe(String),
CouldNotUnlinkExe(String),
UnsupportedPlatform,
CouldNotFindFile(String)
}

impl Error for GhostError {}
Expand All @@ -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),
}
}
Expand Down

0 comments on commit 50b8fc8

Please sign in to comment.