mirror of
https://github.com/janet-lang/janet
synced 2024-11-17 22:24:49 +00:00
Address #294
Correct invalid format string, which masked a panic with another, less useful panic.
This commit is contained in:
parent
f06addfe06
commit
6bc67b70a6
@ -476,7 +476,7 @@ JANET_NO_RETURN static void peg_panic(Builder *b, const char *msg) {
|
|||||||
|
|
||||||
static void peg_fixarity(Builder *b, int32_t argc, int32_t arity) {
|
static void peg_fixarity(Builder *b, int32_t argc, int32_t arity) {
|
||||||
if (argc != arity) {
|
if (argc != arity) {
|
||||||
peg_panicf(b, "expected %d argument%s, got %d%",
|
peg_panicf(b, "expected %d argument%s, got %d",
|
||||||
arity,
|
arity,
|
||||||
arity == 1 ? "" : "s",
|
arity == 1 ? "" : "s",
|
||||||
argc);
|
argc);
|
||||||
|
Loading…
Reference in New Issue
Block a user