diff --git a/src/cli/args.zig b/src/cli/args.zig index 454ca360e..ea0549da0 100644 --- a/src/cli/args.zig +++ b/src/cli/args.zig @@ -126,7 +126,7 @@ pub fn parse( // The error set is dependent on comptime T, so we always add // an extra error so we can have the "else" below. - const ErrSet = @TypeOf(err) || error{Unknown}; + const ErrSet = @TypeOf(err) || error{ Unknown, OutOfMemory }; const message: [:0]const u8 = switch (@as(ErrSet, @errorCast(err))) { // OOM is not recoverable since we need to allocate to // track more error messages.