Skip to content

Commit

Permalink
core::rt: Don't abort when reporting an unknown uv error
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed May 13, 2013
1 parent 8a4763d commit b51bae1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libcore/rt/uv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
};
Expand Down

0 comments on commit b51bae1

Please sign in to comment.