Skip to content

Commit

Permalink
Merge pull request skulpt#1547 from s-cork/fix/funciton-error-msg
Browse files Browse the repository at this point in the history
fix: type error message has extra quote
  • Loading branch information
s-cork authored May 11, 2024
2 parents 7490513 + 8c8d623 commit b378c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function $resolveArgs(posargs, kw) {
} else if (nposargs > co_argcount) {
const plural_expected = co_argcount == 1 ? "argument" : "arguments";
const plural_given = nposargs == 1 ? "was" : "were";
throw new Sk.builtin.TypeError(`${this.$name}"() takes ${co_argcount} positional ${plural_expected} but ${nposargs} ${plural_given} given`);
throw new Sk.builtin.TypeError(`${this.$name}() takes ${co_argcount} positional ${plural_expected} but ${nposargs} ${plural_given} given`);
}

/* Handle keyword arguments */
Expand Down

0 comments on commit b378c3c

Please sign in to comment.