Skip to content

Commit 1e2b3b1

Browse files
committed
std.Build.Step: fix missing path sep in error message
I have a more robust solution to this coming up in the writer interface branch.
1 parent c76f451 commit 1e2b3b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/Build/Step.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,8 @@ fn failWithCacheError(s: *Step, man: *const Build.Cache.Manifest, err: Build.Cac
764764
.file_open, .file_stat, .file_read, .file_hash => |op| {
765765
const pp = man.files.keys()[op.file_index].prefixed_path;
766766
const prefix = man.cache.prefixes()[pp.prefix].path orelse "";
767-
return s.fail("failed to check cache: '{s}{s}' {s} {s}", .{
768-
prefix, pp.sub_path, @tagName(man.diagnostic), @errorName(op.err),
767+
return s.fail("failed to check cache: '{s}{c}{s}' {s} {s}", .{
768+
prefix, std.fs.path.sep, pp.sub_path, @tagName(man.diagnostic), @errorName(op.err),
769769
});
770770
},
771771
},

0 commit comments

Comments
 (0)