summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorJames Carr <lesamouraipourpre@gmail.com>2021-03-29 23:03:14 +0100
committerJames Carr <lesamouraipourpre@gmail.com>2021-03-29 23:03:14 +0100
commit65759622eab8b4848e216af39182dba7ce72e229 (patch)
tree9929648708b44ff2a5c5f5e380bf974218e7dc71 /shared-bindings
parent840373f5c24a36a5ae52969f3578a4d8a59c2dc8 (diff)
Add a missing parameter to an error message (Fixes #4505)
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/time/__init__.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/time/__init__.c b/shared-bindings/time/__init__.c
index 0fb12c9b8..87f766db2 100644
--- a/shared-bindings/time/__init__.c
+++ b/shared-bindings/time/__init__.c
@@ -279,7 +279,7 @@ STATIC mp_obj_t time_mktime(mp_obj_t t) {
mp_obj_tuple_get(t, &len, &elem);
if (len != 9) {
- mp_raise_TypeError_varg(translate("function takes %d positional arguments but %d were given"), 9);
+ mp_raise_TypeError_varg(translate("function takes %d positional arguments but %d were given"), 9, len);
}
if (mp_obj_get_int(elem[0]) < 2000) {