Skip to content

Commit b51bae1

Browse files
committed
core::rt: Don't abort when reporting an unknown uv error
1 parent 8a4763d commit b51bae1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcore/rt/uv/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,9 @@ pub fn uv_error_to_io_error(uverr: UvError) -> IoError {
262262
EACCES => PermissionDenied,
263263
ECONNREFUSED => ConnectionRefused,
264264
ECONNRESET => ConnectionReset,
265-
e => {
266-
abort!("unknown uv error code: %u", e as uint);
265+
_ => {
266+
// XXX: Need to map remaining uv error types
267+
OtherIoError
267268
}
268269
};
269270

0 commit comments

Comments
 (0)