authorgravatar for dtoadq@gmail.comAODQ <dtoadq@gmail.com> 2021-06-10 01:50:24-04:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2021-06-10 12:03:54+03:00
logd368fd435f4c96dac4a064fe71b948007e8b11a5
tree8331b89b138345ad223686a0af1c77b6c99664f5
parent916b645fc1a17f46bab35b54832e037fcf2ab92b

Print path on libc/libc-path fatal error


1 files changed, 2 insertions(+), 2 deletions(-)

src/main.zig+2-2
......@@ -1820,7 +1820,7 @@ fn buildOutputType(
18201820
18211821 if (libc_paths_file) |paths_file| {
18221822 libc_installation = LibCInstallation.parse(gpa, paths_file) catch |err| {
1823 fatal("unable to parse libc paths file: {s}", .{@errorName(err)});
1823 fatal("unable to parse libc paths file at path {s}: {s}", .{ paths_file, @errorName(err) });
18241824 };
18251825 }
18261826
......@@ -2494,7 +2494,7 @@ pub fn cmdLibC(gpa: *Allocator, args: []const []const u8) !void {
24942494 }
24952495 if (input_file) |libc_file| {
24962496 var libc = LibCInstallation.parse(gpa, libc_file) catch |err| {
2497 fatal("unable to parse libc file: {s}", .{@errorName(err)});
2497 fatal("unable to parse libc file at path {s}: {s}", .{ libc_file, @errorName(err) });
24982498 };
24992499 defer libc.deinit(gpa);
25002500 } else {