summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-10 17:32:22 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-11 00:14:48 +0200
commitbab5cfb34f6b1ed4b16c24221479c20f5ed71c4f (patch)
tree4946f63e0e7d528c64fd6191ddd600d4e361e88b /py/runtime.c
parentd6f27fe317bcb8f9e491504df469a74762069458 (diff)
downloadmicropython-bab5cfb34f6b1ed4b16c24221479c20f5ed71c4f.tar.gz
micropython-bab5cfb34f6b1ed4b16c24221479c20f5ed71c4f.zip
Unsupported operand types for binary operator: dump both args' types.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 795cc4624c..3ec47a9ed5 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -536,7 +536,9 @@ mp_obj_t rt_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) {
}
// TODO specify in error message what the operator is
- nlr_jump(mp_obj_new_exception_msg_varg(MP_QSTR_TypeError, "unsupported operand type for binary operator: '%s'", mp_obj_get_type_str(lhs)));
+ nlr_jump(mp_obj_new_exception_msg_varg(MP_QSTR_TypeError,
+ "unsupported operand types for binary operator: '%s', '%s'",
+ mp_obj_get_type_str(lhs), mp_obj_get_type_str(rhs)));
}
mp_obj_t rt_compare_op(int op, mp_obj_t lhs, mp_obj_t rhs) {