I definitely don't think that this should be copied here. For unix, the `uv_error_to_io_error` should suffice, windows may need special handling, however.