about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-12-17 10:21:44 -0800
committerbors <bors@rust-lang.org>2013-12-17 10:21:44 -0800
commitfe85856dc945c7e5eb83e05bdbd72fe1acd6d1c0 (patch)
treee9a65bddef89b630cf39cb6adc21208238172971 /src/libstd/io
parentb870ce7a9fe1368462c3ba8b62a1f85c9e5444ce (diff)
parent33ca3e35bebdb3f1b718feb374df1fa24a1ad73a (diff)
downloadrust-fe85856dc945c7e5eb83e05bdbd72fe1acd6d1c0.tar.gz
rust-fe85856dc945c7e5eb83e05bdbd72fe1acd6d1c0.zip
auto merge of #10863 : cadencemarseille/rust/patch-handle-ENOENT, r=alexcrichton
Translate ENOENT to IoErrorKind::FileNotFound.
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/net/unix.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/net/unix.rs b/src/libstd/io/net/unix.rs
index 49770b80060..2766aa9ad27 100644
--- a/src/libstd/io/net/unix.rs
+++ b/src/libstd/io/net/unix.rs
@@ -191,7 +191,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"));