diff options
| author | Damien George <damien.p.george@gmail.com> | 2020-04-09 17:22:25 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2020-04-13 22:19:37 +1000 |
| commit | 8e048d2548867aac743866ca5a4c244b7b5aac09 (patch) | |
| tree | e62e2ce312ba0e6dc498d7db8901d935f6afd3de /extmod/moduasyncio.c | |
| parent | db137e70dcf67de26828e17c2d3dc9d21e971eb0 (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 'extmod/moduasyncio.c')
| -rw-r--r-- | extmod/moduasyncio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/moduasyncio.c b/extmod/moduasyncio.c index 01ec58294..0b15c9e07 100644 --- a/extmod/moduasyncio.c +++ b/extmod/moduasyncio.c @@ -173,7 +173,7 @@ STATIC mp_obj_t task_cancel(mp_obj_t self_in) { // Can't cancel self (not supported yet). mp_obj_t cur_task = mp_obj_dict_get(uasyncio_context, MP_OBJ_NEW_QSTR(MP_QSTR_cur_task)); if (self_in == cur_task) { - mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("cannot cancel self")); + mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("can't cancel self")); } // If Task waits on another task then forward the cancel to the one it's waiting on. while (mp_obj_is_subclass_fast(MP_OBJ_FROM_PTR(mp_obj_get_type(self->data)), MP_OBJ_FROM_PTR(&task_type))) { |
