Merge pull request #8229 from elpekenin/enhance/release-msg

[displayio] Better exception message
This commit is contained in:
Dan Halbert 2023-07-29 08:56:34 -04:00 committed by GitHub
commit 3b8dc0132d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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() ?"));
}

View File

@ -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: