aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-01-08 18:20:06 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-08 18:20:06 -0700
commit3023d2845c6906fac9522d2e94a6811f7dabbe78 (patch)
tree3721188d2adcc7ffac13bb75bd55cc38cec6dcb3 /src/Compilation.zig
parented410b9c1e9a09e674f862b5f3af9d207837a472 (diff)
downloadzig-3023d2845c6906fac9522d2e94a6811f7dabbe78.tar.gz
zig-3023d2845c6906fac9522d2e94a6811f7dabbe78.zip
compilation: fix bad path in error message
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 602cd645a0..e5dde5e9e2 100644
--- 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) {