zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 3023d2845c6906fac9522d2e94a6811f7dabbe78 (tree)
parent ed410b9c1e9a09e674f862b5f3af9d207837a472
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon,  8 Jan 2024 18:20:06 -0700

compilation: fix bad path in error message

Diffstat:
Msrc/Compilation.zig | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Compilation.zig b/src/Compilation.zig @@ -2056,11 +2056,11 @@ pub fn update(comp: *Compilation, main_progress_node: *std.Progress.Node) !void const is_hit = man.hit() catch |err| { const i = man.failed_file_index orelse return err; const pp = man.files.items[i].prefixed_path orelse return err; - const prefix = man.cache.prefixes()[pp.prefix].path orelse ""; + const prefix = man.cache.prefixes()[pp.prefix]; return comp.setMiscFailure( .check_whole_cache, - "unable to check cache: stat file '{}{s}{s}' failed: {s}", - .{ comp.local_cache_directory, prefix, pp.sub_path, @errorName(err) }, + "unable to check cache: stat file '{}{s}' failed: {s}", + .{ prefix, pp.sub_path, @errorName(err) }, ); }; if (is_hit) {