diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-11-18 20:37:26 -0600 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-11-18 20:37:36 -0600 |
| commit | 9a642fc0490c22b60460bcca8dec3b0b93344d81 (patch) | |
| tree | 00bf9e4f8b2809ccfad58d498a8f09f34d0e07d3 /extmod | |
| parent | f61f8f999b5eeb8a545f5cea13b30ac5b3aeb04a (diff) | |
samd21: Enable terse error reporting on resource constrained chip family
This reclaims over 1kB of flash space by simplifying certain exception
messages. e.g., it will no longer display the requested/actual length
when a fixed list/tuple of N items is needed:
if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE) {
mp_raise_ValueError(translate("tuple/list has wrong length"));
} else {
mp_raise_ValueError_varg(translate("requested length %d but object has length %d"),
(int)len, (int)seq_len);
Other chip families including samd51 keep their current error reporting
capabilities.
Diffstat (limited to 'extmod')
0 files changed, 0 insertions, 0 deletions
