Skip to content

Commit 18c059f

Browse files
committed
py: Shorten a couple of error messages.
1 parent f55a059 commit 18c059f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

py/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ STATIC void compile_try_except(compiler_t *comp, mp_parse_node_t pn_body, int n_
15241524
if (MP_PARSE_NODE_IS_NULL(pns_except->nodes[0])) {
15251525
// this is a catch all exception handler
15261526
if (i + 1 != n_except) {
1527-
compile_syntax_error(comp, pn_excepts[i], "default 'except:' must be last");
1527+
compile_syntax_error(comp, pn_excepts[i], "default 'except' must be last");
15281528
compile_decrease_except_level(comp);
15291529
return;
15301530
}

py/objdict.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ STATIC mp_obj_t dict_update(size_t n_args, const mp_obj_t *args, mp_map_t *kwarg
386386
if (key == MP_OBJ_STOP_ITERATION
387387
|| value == MP_OBJ_STOP_ITERATION
388388
|| stop != MP_OBJ_STOP_ITERATION) {
389-
mp_raise_ValueError("dictionary update sequence has the wrong length");
389+
mp_raise_ValueError("dict update sequence has wrong length");
390390
} else {
391391
mp_map_lookup(&self->map, key, MP_MAP_LOOKUP_ADD_IF_NOT_FOUND)->value = value;
392392
}

0 commit comments

Comments
 (0)