Skip to content

Commit

Permalink
fix: ENOENT detection
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Nov 22, 2024
1 parent c6661e8 commit 6b3976f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fn error_code(kind: ErrorKind) -> Option<(&'static str, i16)> {
// Future contributors may add more if they need it.
Some(match kind {
ErrorKind::AlreadyExists => ("EEXIST", 17),
ErrorKind::NotFound => ("ENOENT", 2),
ErrorKind::InvalidInput | ErrorKind::NotFound => ("ENOENT", 2),
ErrorKind::PermissionDenied => ("EPERM", 1),
_ => return None,
})
Expand Down

0 comments on commit 6b3976f

Please sign in to comment.