mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
stage2: anyerror -> explicit error set
This commit is contained in:
parent
1eb5aaa4b5
commit
eec53d67ab
@ -229,7 +229,7 @@ pub const File = struct {
|
||||
return &c_file.base;
|
||||
}
|
||||
|
||||
pub fn fail(self: *C, src: usize, comptime format: []const u8, args: anytype) anyerror {
|
||||
pub fn fail(self: *C, src: usize, comptime format: []const u8, args: anytype) error{AnalysisFail, OutOfMemory} {
|
||||
self.error_msg = try Module.ErrorMsg.create(self.base.allocator, src, format, args);
|
||||
return error.AnalysisFail;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user