stage2: improve AstGen FileNotFound error message

Partially addresses #9203. It fixes the first case, but not the second
one mentioned in the issue.
This commit is contained in:
Andrew Kelley
2021-07-02 15:27:00 -07:00
parent 5103053977
commit d979dd9b58
7 changed files with 111 additions and 34 deletions

View File

@@ -2485,7 +2485,7 @@ pub fn astGenFile(mod: *Module, file: *Scope.File) !void {
.file_scope = file,
.parent_decl_node = 0,
.lazy = .{ .byte_abs = byte_abs },
}, err_msg, "invalid byte: '{'}'", .{ std.zig.fmtEscapes(source[byte_abs..][0..1]) });
}, err_msg, "invalid byte: '{'}'", .{std.zig.fmtEscapes(source[byte_abs..][0..1])});
}
{