Use EINVAL instead of ENOENT

This commit is contained in:
Jeremy Soller
2017-07-22 13:14:31 -06:00
parent f40f6921e8
commit e635648ed7
+1 -1
View File
@@ -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();