Skip to content

Commit

Permalink
Use EINVAL instead of ENOENT
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Jul 22, 2017
1 parent f40f692 commit e635648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mount/redox/scheme.rs
Expand Up @@ -402,7 +402,7 @@ impl Scheme for FileScheme {
// println!("Dup {}", old_id);

if ! buf.is_empty() {
return Err(Error::new(ENOENT));
return Err(Error::new(EINVAL));
}

let mut files = self.files.lock();
Expand Down

0 comments on commit e635648

Please sign in to comment.