give modules friendly names for error reporting

This commit is contained in:
Andrew Kelley
2023-10-08 20:58:04 -07:00
parent cd4397783f
commit 5eb5d523b5
8 changed files with 40 additions and 23 deletions

View File

@@ -129,7 +129,7 @@ pub fn addCases(ctx: *Cases) !void {
\\}
, &[_][]const u8{
":1:1: error: file exists in multiple modules",
":1:1: note: root of module root.foo",
":1:1: note: root of module foo",
":3:17: note: imported from module root",
});
case.addSourceFile("foo.zig",