aboutsummaryrefslogtreecommitdiff
path: root/py/vm.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-08-22 16:13:05 +1000
committerDamien George <damien.p.george@gmail.com>2019-08-22 16:13:05 +1000
commit2fca0d7f18f8c31a6c85b598bb72f01725b26228 (patch)
tree607ec3063ed76a8f0be11ae7184226ede7dd918f /py/vm.c
parent53527138a938a5119f7294480567526ade646ba6 (diff)
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.
Diffstat (limited to 'py/vm.c')
-rw-r--r--py/vm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/vm.c b/py/vm.c
index 260a7f38b..6a4634d00 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -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;