From 3023d2845c6906fac9522d2e94a6811f7dabbe78 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 8 Jan 2024 18:20:06 -0700 Subject: compilation: fix bad path in error message --- src/Compilation.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Compilation.zig') 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) { -- cgit v1.2.3