Re-use an error message in _stage

This commit is contained in:
Radomir Dopieralski 2019-04-12 21:31:06 +02:00
parent 0599286e32
commit 7aab3e8c93
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ STATIC mp_obj_t stage_render(size_t n_args, const mp_obj_t *args) {
size_t buffer_size = bufinfo.len / 2; // 16-bit indexing
if (!MP_OBJ_IS_TYPE(args[6], &displayio_display_type)) {
mp_raise_TypeError(translate("expected displayio.Display"));
mp_raise_TypeError(translate("argument num/types mismatch"));
}
displayio_display_obj_t *display = MP_OBJ_TO_PTR(args[6]);