fix: catch all errors that can occur during plugin installation and log the error#7375
Conversation
Review Summary by QodoCatch and log plugin installation errors to prevent startup crashes
WalkthroughsDescription• Wrap plugin installation in try-catch to prevent crashes • Log errors during plugin installation for debugging • Remove unnecessary npmrc configuration setting Diagramflowchart LR
A["Plugin Installation Loop"] --> B["Try Block"]
B --> C["Install Plugin"]
C --> D{Success?}
D -->|Yes| E["Continue"]
D -->|No| F["Catch Error"]
F --> G["Log Error Message"]
G --> E
File Changes1. src/static/js/pluginfw/installer.ts
|
Code Review by Qodo
1. logger.error used, not warn
|
|
You delete .npmrc for some reason? Is your AI haunted? |
No. 😂 I used my AI in my brain. We don't need that file anymore because we don't have any peer dependencies anymore. |
|
For best practice should that be two pull requests? I'm pretty flexible with this stuff so I'm happy to just be chill about it :p |
As long as you can review the files in a timely manner I am okay with that. At work we have the boyscout rule to always leave the place in your code better than before. :) As long as you don't put two things with hundreds of files changed I am okay with it too :p |
No description provided.