Improve error message
This commit is contained in:
parent
75ba17e84e
commit
c4e915c3b2
@ -2056,7 +2056,7 @@ msgid "Too many channels in sample."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/displayio/__init__.c
|
#: shared-module/displayio/__init__.c
|
||||||
msgid "Too many display busses"
|
msgid "Too many display busses; forgot display.release_displays() ?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/displayio/__init__.c
|
#: shared-module/displayio/__init__.c
|
||||||
|
@ -386,5 +386,5 @@ primary_display_bus_t *allocate_display_bus_or_raise(void) {
|
|||||||
if (result) {
|
if (result) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
mp_raise_RuntimeError(translate("Too many display busses"));
|
mp_raise_RuntimeError(translate("Too many display busses; forgot display.release_displays() ?"));
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,9 @@ for po_filename in po_filenames:
|
|||||||
|
|
||||||
missing = all_ids - po_ids
|
missing = all_ids - po_ids
|
||||||
if missing:
|
if missing:
|
||||||
print("Missing message id. Please run `make translate`")
|
print(
|
||||||
|
"Missing message id. Please run `make translate` and then `git commit locale/circuitpython.pot`"
|
||||||
|
)
|
||||||
print(missing)
|
print(missing)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user