aboutsummaryrefslogtreecommitdiff
path: root/py/objtype.c
diff options
context:
space:
mode:
authorDamien George2020-04-09 17:22:25 +1000
committerDamien George2020-04-13 22:19:37 +1000
commit8e048d2548867aac743866ca5a4c244b7b5aac09 (patch)
treee62e2ce312ba0e6dc498d7db8901d935f6afd3de /py/objtype.c
parentdb137e70dcf67de26828e17c2d3dc9d21e971eb0 (diff)
all: Clean up error strings to use lowercase and change cannot to can't.
Now that error string compression is supported it's more important to have consistent error string formatting (eg all lowercase English words, consistent contractions). This commit cleans up some of the strings to make them more consistent.
Diffstat (limited to 'py/objtype.c')
-rw-r--r--py/objtype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objtype.c b/py/objtype.c
index 3f32cd601..a8eeb1a9f 100644
--- a/py/objtype.c
+++ b/py/objtype.c
@@ -989,9 +989,9 @@ STATIC mp_obj_t type_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp
if (self->make_new == NULL) {
#if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE
- mp_raise_TypeError(MP_ERROR_TEXT("cannot create instance"));
+ mp_raise_TypeError(MP_ERROR_TEXT("can't create instance"));
#else
- mp_raise_msg_varg(&mp_type_TypeError, MP_ERROR_TEXT("cannot create '%q' instances"), self->name);
+ mp_raise_msg_varg(&mp_type_TypeError, MP_ERROR_TEXT("can't create '%q' instances"), self->name);
#endif
}