Function addError [src]

Prototype

pub fn addError(step: *Step, comptime fmt: []const u8, args: anytype) error{OutOfMemory}!void

Parameters

step: *Stepfmt: []const u8

Possible Errors

OutOfMemory

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); }