Skip to content
Snippets Groups Projects
Commit 2fca0d7f authored by Damien George's avatar Damien George
Browse files

py/vm: Shorten error message for not-implemented opcode.

It's really an opcode that's not implemented, so use "opcode" instead of
"byte code".  And remove the redundant "not implemented" text because that
is already implied by the exception type.  There's no need to have a long
error message for an exception that is almost never encountered.  Saves
about 20 bytes of code size on most ports.
parent 53527138
No related branches found
No related tags found
No related merge requests found
......@@ -1262,7 +1262,8 @@ yield:
} else
#endif
{
mp_obj_t obj = mp_obj_new_exception_msg(&mp_type_NotImplementedError, "byte code not implemented");
mp_obj_t obj = mp_obj_new_exception_msg(&mp_type_NotImplementedError, "opcode");
nlr_pop();
code_state->state[0] = obj;
return MP_VM_RETURN_EXCEPTION;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment