Merge pull request #8229 from elpekenin/enhance/release-msg
[displayio] Better exception message
This commit is contained in:
commit
3b8dc0132d
|
@ -2056,7 +2056,7 @@ msgid "Too many channels in sample."
|
|||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/__init__.c
|
||||
msgid "Too many display busses"
|
||||
msgid "Too many display busses; forgot display.release_displays() ?"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/displayio/__init__.c
|
||||
|
|
|
@ -386,5 +386,5 @@ primary_display_bus_t *allocate_display_bus_or_raise(void) {
|
|||
if (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
|
||||
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)
|
||||
sys.exit(-1)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue