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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy