mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
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:
@@ -4976,9 +4976,8 @@ pub fn addCases(ctx: *TestContext) !void {
|
||||
|
||||
ctx.objErrStage1("bad import",
|
||||
\\const bogus = @import("bogus-does-not-exist.zig",);
|
||||
\\export fn entry() void { bogus.bogo(); }
|
||||
, &[_][]const u8{
|
||||
"tmp.zig:1:15: error: unable to find 'bogus-does-not-exist.zig'",
|
||||
"tmp.zig:1:23: error: unable to load '${DIR}bogus-does-not-exist.zig': FileNotFound",
|
||||
});
|
||||
|
||||
ctx.objErrStage1("undeclared identifier",
|
||||
|
||||
Reference in New Issue
Block a user