Skip to content

Commit

Permalink
Merge pull request #1 from brohamgoham/v0.1.2
Browse files Browse the repository at this point in the history
unix style changes
  • Loading branch information
brohamgoham authored Jun 30, 2024
2 parents 41399f8 + 50b8fc8 commit 8a8667e
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 8a8667e

Please sign in to comment.