core::rt: Don't abort when reporting an unknown uv error
This commit is contained in:
parent
174ec1e422
commit
afcf4f2639
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue