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
20562056 const is_hit = man.hit() catch |err| {
20572057 const i = man.failed_file_index orelse return err;
20582058 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];
20602060 return comp.setMiscFailure(
20612061 .check_whole_cache,
2062 "unable to check cache: stat file '{}{s}{s}' failed: {s}",
2063 .{ comp.local_cache_directory, prefix, pp.sub_path, @errorName(err) },
2062 "unable to check cache: stat file '{}{s}' failed: {s}",
2063 .{ prefix, pp.sub_path, @errorName(err) },
20642064 );
20652065 };
20662066 if (is_hit) {