Use EINVAL instead of ENOENT

This commit is contained in:
Jeremy Soller
2017-07-22 13:21:15 -06:00
parent fc914e0cae
commit 6a061665e4
12 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ impl Scheme for DebugScheme {
fn dup(&self, id: usize, buf: &[u8]) -> Result<usize> {
if ! buf.is_empty() {
return Err(Error::new(ENOENT));
return Err(Error::new(EINVAL));
}
let flags = {