fix error message

This commit is contained in:
Dan Halbert 2021-10-07 10:30:00 +05:30 committed by microDev
parent d4ec3e2927
commit de8f7b11ef
No known key found for this signature in database
GPG Key ID: 2C0867BE60967730
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ msgid "%q should be an int"
msgstr ""
#: shared-bindings/usb_hid/Device.c
msgid "%q with a 0 must of length 1"
msgid "%q with a report ID of 0 must be of length 1"
msgstr ""
#: py/bc.c py/objnamedtuple.c

View File

@ -148,7 +148,7 @@ STATIC mp_obj_t usb_hid_device_make_new(const mp_obj_type_t *type, size_t n_args
}
if (report_ids_array[0] == 0 && report_ids_count > 1) {
mp_raise_ValueError_varg(translate("%q with a 0 must of length 1"), MP_QSTR_report_ids);
mp_raise_ValueError_varg(translate("%q with a report ID of 0 must be of length 1"), MP_QSTR_report_ids);
}
common_hal_usb_hid_device_construct(