diff options
| author | James Carr <lesamouraipourpre@gmail.com> | 2021-03-29 23:03:14 +0100 |
|---|---|---|
| committer | James Carr <lesamouraipourpre@gmail.com> | 2021-03-29 23:03:14 +0100 |
| commit | 65759622eab8b4848e216af39182dba7ce72e229 (patch) | |
| tree | 9929648708b44ff2a5c5f5e380bf974218e7dc71 | |
| parent | 840373f5c24a36a5ae52969f3578a4d8a59c2dc8 (diff) | |
Add a missing parameter to an error message (Fixes #4505)
| -rw-r--r-- | shared-bindings/time/__init__.c | 2 |
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) { |
