Function addError [src]
Prototype
pub fn addError(step: *Step, comptime fmt: []const u8, args: anytype) error{OutOfMemory}!void
Parameters
step: *Step
fmt: []const u8
Possible Errors
Source
pub fn addError(step: *Step, comptime fmt: []const u8, args: anytype) error{OutOfMemory}!void {
const arena = step.owner.allocator;
const msg = try std.fmt.allocPrint(arena, fmt, args);
try step.result_error_msgs.append(arena, msg);
}