Skip to content

Commit 7df21c9

Browse files
committed
Combine a message
1 parent f652a89 commit 7df21c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ mp_obj_t mp_unary_op(mp_unary_op_t op, mp_obj_t arg) {
310310
}
311311
#else
312312
if (op == MP_UNARY_OP_INT) {
313-
mp_raise_TypeError_varg(MP_ERROR_TEXT("can't convert %q to int"), mp_obj_get_type_qstr(arg));
313+
mp_raise_TypeError_varg(MP_ERROR_TEXT("can't convert %q to %q"), mp_obj_get_type_qstr(arg), MP_QSTR_int);
314314
} else {
315315
mp_raise_TypeError_varg(MP_ERROR_TEXT("unsupported type for %q: '%q'"),
316316
mp_unary_op_method_name[op], mp_obj_get_type_qstr(arg));

0 commit comments

Comments
 (0)