core::rt: Don't abort when reporting an unknown uv error

This commit is contained in:
Brian Anderson 2013-05-09 15:04:12 -07:00
parent 174ec1e422
commit afcf4f2639

View file

@ -267,8 +267,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
}
};