Skip to content

Commit afcf4f2

Browse files
committed
core::rt: Don't abort when reporting an unknown uv error
1 parent 174ec1e commit afcf4f2

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
@@ -267,8 +267,9 @@ pub fn uv_error_to_io_error(uverr: UvError) -> IoError {
267267
EACCES => PermissionDenied,
268268
ECONNREFUSED => ConnectionRefused,
269269
ECONNRESET => ConnectionReset,
270-
e => {
271-
abort!("unknown uv error code: %u", e as uint);
270+
_ => {
271+
// XXX: Need to map remaining uv error types
272+
OtherIoError
272273
}
273274
};
274275

0 commit comments

Comments
 (0)