Fix the failing "bad import" test on Windows

This commit is contained in:
Martin Wickham authored and Andrew Kelley committed 2021-09-23 13:17:48 -04:00
1 parent dd81a2147d
commit ef6fbbdab6
1 file changed
+4 -8
+4 -8
View File
@@ -2761,16 +2761,12 @@ fn reportRetryableAstGenError(
try Module.ErrorMsg.create(
gpa,
src_loc,
"unable to load '{'}" ++ std.fs.path.sep_str ++ "{'}': {s}",
.{
std.zig.fmtEscapes(dir_path),
std.zig.fmtEscapes(file.sub_file_path),
@errorName(err),
},
"unable to load '{s}" ++ std.fs.path.sep_str ++ "{s}': {s}",
.{ dir_path, file.sub_file_path, @errorName(err) },
)
else
try Module.ErrorMsg.create(gpa, src_loc, "unable to load '{'}': {s}", .{
std.zig.fmtEscapes(file.sub_file_path), @errorName(err),
try Module.ErrorMsg.create(gpa, src_loc, "unable to load '{s}': {s}", .{
file.sub_file_path, @errorName(err),
});
errdefer err_msg.destroy(gpa);