-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error display logic for modules (#1124)
* Improve error display logic for modules Module functions like onInit, onStart, or onDisable can return a (bool, string) pair that act similarly to the returns of a pcall to trigger a "soft error" for the module and display it as failed in the module listing. Some of our modules use this when gracefully disabling themselves, but confusingly end up being displayed as errored in the module listing - chief among them are the Blizzard nameplates when they've been disabled due to the presence of other known nameplate addons. We now support returning a module status enum code from the module functions in-place of the leading boolean, which will force the status of the module to appear as returned. Additionally to better support the use case by Blizzard nameplates, a new status code has been added for conflicted modules. These will display as grey in the list rather than appearing as errors. * Apply missing dependency change to chat and tooltip skin modules --------- Co-authored-by: Solanya <[email protected]>
- Loading branch information
Showing
8 changed files
with
49 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters