8000 py: Add temporary expanded mpy mismatch message for switch to 2.0.0. … · sparkfun/circuitpython@4d0dc4b · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d0dc4b

Browse files
tannewtdhalbert
authored andcommitted
py: Add temporary expanded mpy mismatch message for switch to 2.0.0. (adafruit#218)
Fixes adafruit#214
1 parent 17ec02a commit 4d0dc4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

py/persistentcode.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ mp_raw_code_t *mp_raw_code_load(mp_reader_t *reader) {
216216
|| header[1] != MPY_VERSION
217217
|| header[2] != MPY_FEATURE_FLAGS
218218
|| header[3] > mp_small_int_bits()) {
219-
mp_raise_ValueError("incompatible .mpy file");
219+
// TODO(tannewt): Restore the generic error after we move folks to 2.0.0.
220+
// mp_raise_ValueError("incompatible .mpy file");
221+
mp_raise_ValueError("Incompatible .mpy file. Please update all .mpy files. See http://adafru.it/mpy-update for more info.");
220222
}
221223
mp_raw_code_t *rc = load_raw_code(reader);
222224
reader->close(reader->data);

0 commit comments

Comments
 (0)
0