Created
June 29, 2020 16:10
-
-
Save Aransentin/881855fd01b37828695b2f97c2f11a4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: Foobar | |
/opt/zig/lib/zig/std/net.zig:347:17: 0x23dcc7 in std.net.Address.parseIp4 (test) | |
return error.InvalidCharacter; | |
^ | |
/opt/zig/lib/zig/std/fmt.zig:1082:25: 0x23f5ef in std.fmt.charToDigit (test) | |
if (value >= radix) return error.InvalidCharacter; | |
^ | |
/opt/zig/lib/zig/std/net.zig:159:31: 0x23e43d in std.net.Address.parseIp6 (test) | |
const digit = try std.fmt.charToDigit(c, 16); | |
^ | |
/opt/zig/lib/zig/std/net.zig:45:9: 0x23f0bc in std.net.Address.parseIp (test) | |
return error.InvalidIPAddressFormat; | |
^ | |
/opt/zig/lib/zig/std/net.zig:74:29: 0x233ba8 in std.net.Address.parseExpectingFamily (test) | |
os.AF_UNSPEC => return parseIp(name, port), | |
^ | |
/opt/zig/lib/zig/std/io/reader.zig:177:31: 0x2410bf in std.io.reader.Reader(*std.io.buffered_reader.BufferedReader(4096,std.io.reader.Reader(std.fs.file.File,std.os.ReadError,std.fs.file.File.read)),std.os.ReadError,std.io.buffered_reader.BufferedReader(4096,std.io.reader.Reader(std.fs.file.File,std.os.ReadError,std.fs.file.File.read)).read).readByte (test) | |
if (amt_read < 1) return error.EndOfStream; | |
^ | |
/opt/zig/lib/zig/std/io/reader.zig:177:31: 0x2410bf in std.io.reader.Reader(*std.io.buffered_reader.BufferedReader(4096,std.io.reader.Reader(std.fs.file.File,std.os.ReadError,std.fs.file.File.read)),std.os.ReadError,std.io.buffered_reader.BufferedReader(4096,std.io.reader.Reader(std.fs.file.File,std.os.ReadError,std.fs.file.File.read)).read).readByte (test) | |
if (amt_read < 1) return error.EndOfStream; | |
^ | |
/opt/zig/lib/zig/std/os.zig:4870:17: 0x248d96 in std.os.recvfrom (test) | |
return error.WouldBlock; | |
^ | |
/opt/zig/lib/zig/std/os.zig:3015:28: 0x235639 in std.os.connect (test) | |
ENETUNREACH => return error.NetworkUnreachable, | |
^ | |
/root/test.zig:7:5: 0x22ccdb in main (test) | |
return error.Foobar; | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
pub fn main() !void { | |
const addrlist = try std.net.getAddressList(std.heap.page_allocator, "google.com", 80); | |
addrlist.deinit(); | |
return error.Foobar; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment