Repository navigation
fix: continue startup after module helper failure - #4317
Merged
Merged
Conversation
Collaborator
|
I agree, a failure should not stop mirror from starting |
khassel
approved these changes
Oct 25, 2026
Collaborator
|
That works for me, too. I also don’t think we should complicate the setup by adding a If someone doesn’t notice when a module is missing, then it doesn’t really matter anyway... It’s in the logs, after all. @KristjanESPERANTO let me know whether you want to wait for further opinions or if I can go ahead and merge ... |
Collaborator
Author
|
Oh, thanks for the quick positive feedback! 😃 Since you both gave it a thumbs-up, I'm in favor of merging it. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, an error while initializing or setting up a module's node_helper could abort MagicMirror's startup. This is especially unfortunate when the mirror starts unattended: one failing module can leave the display blank.
With this change, the failing helper is logged and skipped, while the other modules can still start. This makes startup more robust, but it also means a problem might go unnoticed for longer, since everything may appear to work at a glance even though one module has failed.
I personally think the added robustness is worth it, but I’d be glad to hear if you see it differently. Perhaps we can treat this PR as a proof of concept and use it to discuss whether this is the right behavior for us.
I also considered adding an option such as
failFast, so users could choose whether a node_helper failure should abort startup.