Fix arity check error message formatting
This commit is contained in:
parent
8f3a33a52b
commit
83680607b7
|
@ -533,8 +533,8 @@ pub const RuntimeEnv = struct {
|
||||||
|
|
||||||
if (arg_count < arity) {
|
if (arg_count < arity) {
|
||||||
return self.raise(error.BadOperation, "expected `{expected}` {noun}, {provided} provided", .{
|
return self.raise(error.BadOperation, "expected `{expected}` {noun}, {provided} provided", .{
|
||||||
.expected = arity,
|
.expected = arg_count,
|
||||||
.provided = arg_count,
|
.provided = arity,
|
||||||
.noun = if (arity == 1) "argument" else "arguments",
|
.noun = if (arity == 1) "argument" else "arguments",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue