diff options
| author | AODQ <dtoadq@gmail.com> | 2021-06-10 01:50:24 -0400 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-06-10 12:03:54 +0300 |
| commit | d368fd435f4c96dac4a064fe71b948007e8b11a5 (patch) | |
| tree | 8331b89b138345ad223686a0af1c77b6c99664f5 /src | |
| parent | 916b645fc1a17f46bab35b54832e037fcf2ab92b (diff) | |
| download | zig-d368fd435f4c96dac4a064fe71b948007e8b11a5.tar.gz zig-d368fd435f4c96dac4a064fe71b948007e8b11a5.zip | |
Print path on libc/libc-path fatal error
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index fd02ba9480..631d4ef460 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1820,7 +1820,7 @@ fn buildOutputType( if (libc_paths_file) |paths_file| { libc_installation = LibCInstallation.parse(gpa, paths_file) catch |err| { - fatal("unable to parse libc paths file: {s}", .{@errorName(err)}); + fatal("unable to parse libc paths file at path {s}: {s}", .{ paths_file, @errorName(err) }); }; } @@ -2494,7 +2494,7 @@ pub fn cmdLibC(gpa: *Allocator, args: []const []const u8) !void { } if (input_file) |libc_file| { var libc = LibCInstallation.parse(gpa, libc_file) catch |err| { - fatal("unable to parse libc file: {s}", .{@errorName(err)}); + fatal("unable to parse libc file at path {s}: {s}", .{ libc_file, @errorName(err) }); }; defer libc.deinit(gpa); } else { |
