authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-08 18:20:06-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-08 18:20:06-07:00
log3023d2845c6906fac9522d2e94a6811f7dabbe78
tree3721188d2adcc7ffac13bb75bd55cc38cec6dcb3
parented410b9c1e9a09e674f862b5f3af9d207837a472

compilation: fix bad path in error message


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

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