aboutsummaryrefslogtreecommitdiff
path: root/lib/std/process.zig
diff options
context:
space:
mode:
authorChristiano Haesbaert <haesbaert@haesbaert.org>2023-06-16 09:04:48 +0200
committerVeikka Tuominen <git@vexu.eu>2024-01-21 11:20:03 +0200
commitbf7ebfa67af78da3ad40869cc61aecb594f9fc74 (patch)
treed03e684951570de0b03428a4c89229e463701039 /lib/std/process.zig
parent2e7d28dd0d27d94945ac5f131d7f7b4e03bc0024 (diff)
downloadzig-bf7ebfa67af78da3ad40869cc61aecb594f9fc74.tar.gz
zig-bf7ebfa67af78da3ad40869cc61aecb594f9fc74.zip
Handle all errors on std.net.Ipv4address.resolveIP
The following test fails since NonCanonical is not handled test "foo" { std.net.Ip4Address.resolveIp("1.1.1.1", 0) catch unreachable; } /usr/lib/zig/std/net.zig:240:60: error: switch must handle all possibilities if (parse(name, port)) |ip4| return ip4 else |err| switch (err) { ^~~~~~ /usr/lib/zig/std/net.zig:240:60: note: unhandled error value: 'error.NonCanonical' referenced by: test.foo: src/dhcp.zig:383:23
Diffstat (limited to 'lib/std/process.zig')
0 files changed, 0 insertions, 0 deletions