# cast sendto to SendError inside send \(\#7481\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/6a75cfd0f6d45de3b4d1ad74eaec892dc1cd6e30)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 6a75cfd0f6d45de3b4d1ad74eaec892dc1cd6e30

Requested commit: 6a75cfd0f6d45de3b4d1ad74eaec892dc1cd6e30

Commit: 6a75cfd0f6d45de3b4d1ad74eaec892dc1cd6e30

Tree: afdcfa48b211d5ea9ebde4b09f9868f403c72765

Author: luna

Committer: GitHub

## Message

```
cast sendto to SendError inside send (#7481)

* cast sendto to SendError inside send

* remove WouldBlock from SendToError

* add missing ENOTCONN mapping

* remove SystemResources duplicate

* move NetworkUnreachable to SendError

* add NetworkSubsystemFailed to SendError

* Use zig's implicit error set casting

Co-authored-by: Andrew Kelley <andrew@ziglang.org>
```

## Parents

- [43dbe86226fe89c6364fa0261297f1a9d8eb2a58](https://git.cafe/gitcafe/zig/commit/43dbe86226fe89c6364fa0261297f1a9d8eb2a58?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/6a75cfd0f6d45de3b4d1ad74eaec892dc1cd6e30?format=markdown)
