From b51bae1f5852cf032649a3b1e187f26f8314786d Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 9 May 2013 15:04:12 -0700 Subject: [PATCH] core::rt: Don't abort when reporting an unknown uv error --- src/libcore/rt/uv/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libcore/rt/uv/mod.rs b/src/libcore/rt/uv/mod.rs index db0b570adc049..1c9fc3203a503 100644 --- a/src/libcore/rt/uv/mod.rs +++ b/src/libcore/rt/uv/mod.rs @@ -262,8 +262,9 @@ pub fn uv_error_to_io_error(uverr: UvError) -> IoError { EACCES => PermissionDenied, ECONNREFUSED => ConnectionRefused, ECONNRESET => ConnectionReset, - e => { - abort!("unknown uv error code: %u", e as uint); + _ => { + // XXX: Need to map remaining uv error types + OtherIoError } };