aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-07-02 15:27:00 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-07-02 15:27:00 -0700
commitd979dd9b58f6d5462b009002e0a0eb79f94fb9a7 (patch)
tree6cb9504f15c34fd32f732b930b8d770346576617 /src/Module.zig
parent5103053977573131d8040a53d9ab3f2afd1b01b0 (diff)
downloadzig-d979dd9b58f6d5462b009002e0a0eb79f94fb9a7.tar.gz
zig-d979dd9b58f6d5462b009002e0a0eb79f94fb9a7.zip
stage2: improve AstGen FileNotFound error message
Partially addresses #9203. It fixes the first case, but not the second one mentioned in the issue.
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 4b82a6df07..b3480532b0 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -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])});
}
{