Skip to content

Commit 33b8aca

Browse files
committed
make jpegio unsupported format error more helpful
1 parent 799f13c commit 33b8aca

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

locale/circuitpython.pot

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ msgstr ""
159159
msgid "%q length must be >= %d"
160160
msgstr ""
161161

162-
#: py/runtime.c
163-
msgid "%q moved from %q to %q"
164-
msgstr ""
165-
166162
#: py/argcheck.c
167163
msgid "%q must be %d"
168164
msgstr ""
@@ -1644,10 +1640,6 @@ msgstr ""
16441640
msgid "Not playing"
16451641
msgstr ""
16461642

1647-
#: shared-module/jpegio/JpegDecoder.c
1648-
msgid "Not supported JPEG standard"
1649-
msgstr ""
1650-
16511643
#: ports/espressif/common-hal/paralleldisplaybus/ParallelBus.c
16521644
#: ports/espressif/common-hal/sdioio/SDCard.c
16531645
#, c-format
@@ -2371,6 +2363,10 @@ msgid ""
23712363
"declined or ignored."
23722364
msgstr ""
23732365

2366+
#: shared-module/jpegio/JpegDecoder.c
2367+
msgid "Unsupported JPEG (may be progressive)"
2368+
msgstr ""
2369+
23742370
#: shared-bindings/bitmaptools/__init__.c
23752371
msgid "Unsupported colorspace"
23762372
msgstr ""
@@ -3174,10 +3170,6 @@ msgstr ""
31743170
msgid "file write is not available"
31753171
msgstr ""
31763172

3177-
#: shared-bindings/storage/__init__.c
3178-
msgid "filesystem must provide mount method"
3179-
msgstr ""
3180-
31813173
#: extmod/ulab/code/numpy/vector.c
31823174
msgid "first argument must be a callable"
31833175
msgstr ""

shared-module/jpegio/JpegDecoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static void check_jresult(JRESULT j) {
4646
msg = MP_ERROR_TEXT("Right format but not supported");
4747
break;
4848
case JDR_FMT3:
49-
msg = MP_ERROR_TEXT("Not supported JPEG standard");
49+
msg = MP_ERROR_TEXT("Unsupported JPEG (may be progressive)");
5050
break;
5151
}
5252
mp_raise_RuntimeError(msg);

0 commit comments

Comments
 (0)