diff --git a/src.ts/utils/errors.ts b/src.ts/utils/errors.ts index 96aec05ac..9ef155d4a 100644 --- a/src.ts/utils/errors.ts +++ b/src.ts/utils/errors.ts @@ -736,7 +736,7 @@ export function assertArgumentCount(count: number, expectedCount: number, messag expectedCount: expectedCount }); - assert(count <= expectedCount, "too many arguemnts" + message, "UNEXPECTED_ARGUMENT", { + assert(count <= expectedCount, "too many arguments" + message, "UNEXPECTED_ARGUMENT", { count: count, expectedCount: expectedCount });