From 33ca3e35bebdb3f1b718feb374df1fa24a1ad73a Mon Sep 17 00:00:00 2001 From: Cadence Marseille Date: Sun, 8 Dec 2013 17:12:41 -0500 Subject: Handle ENOENT Translate ENOENT to IoErrorKind::FileNotFound. --- src/libstd/io/net/unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/io') diff --git a/src/libstd/io/net/unix.rs b/src/libstd/io/net/unix.rs index c1f75465d9c..76ce1e4dc6b 100644 --- a/src/libstd/io/net/unix.rs +++ b/src/libstd/io/net/unix.rs @@ -194,7 +194,7 @@ mod tests { do run_in_mt_newsched_task { let mut called = false; io_error::cond.trap(|e| { - assert_eq!(e.kind, OtherIoError); + assert_eq!(e.kind, FileNotFound); called = true; }).inside(|| { let stream = UnixStream::connect(&("path/to/nowhere")); -- cgit 1.4.1-3-g733a5