| ... | @@ -405,6 +405,14 @@ pub const AllErrors = struct { | ... | @@ -405,6 +405,14 @@ pub const AllErrors = struct { |
| 405 | }, | 405 | }, |
| 406 | }; | 406 | }; |
| 407 | } | 407 | } |
| | 408 | if (module_err_msg.src_loc.lazy == .entire_file) { |
| | 409 | try errors.append(.{ |
| | 410 | .plain = .{ |
| | 411 | .msg = try arena.allocator.dupe(u8, module_err_msg.msg), |
| | 412 | }, |
| | 413 | }); |
| | 414 | return; |
| | 415 | } |
| 408 | const source = try module_err_msg.src_loc.file_scope.getSource(module.gpa); | 416 | const source = try module_err_msg.src_loc.file_scope.getSource(module.gpa); |
| 409 | const byte_offset = try module_err_msg.src_loc.byteOffset(); | 417 | const byte_offset = try module_err_msg.src_loc.byteOffset(); |
| 410 | const loc = std.zig.findLineColumn(source, byte_offset); | 418 | const loc = std.zig.findLineColumn(source, byte_offset); |