Open NuSkooler opened 6 years ago
https://github.com/NuSkooler/enigma-bbs/blob/user-interruptions/core/menu_module.js#L561
This will be used all over the place later when it's brought into the main branch.
ValidateMCIByViewIds is in and in use in a few spots. PR's welcome :)
Menu modules that require a particular set of MCI codes (e.g.
VM1
,SM2
...) should validate and enforce that requirements returning a failure to load the menu vs attempting to access the view and crashing.See #164 as an example of this.
A new error code
Errors.MissingMci
has been added in the0.0.9-alpha
branch to handle these cases uniformly.