From ef6fbbdab623f8eb6615eb3fb3e42141e5711331 Mon Sep 17 00:00:00 2001 From: Martin Wickham Date: Thu, 23 Sep 2021 00:33:06 -0500 Subject: [PATCH] Fix the failing "bad import" test on Windows --- src/Compilation.zig | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Compilation.zig b/src/Compilation.zig index 48c907c759..140ed40d99 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -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);