Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Enhance error handling when loading Node addons failed by including the original error as a cause in the thrown error. Also improve code readability by fixing indentation.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 23, 2025 05:11
@netlify
Copy link

netlify bot commented Nov 23, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 306b529
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/692298263d3efb00086680b9
😎 Deploy Preview https://deploy-preview-6631--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 61 (🟢 up 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances error handling in the Node addons plugin by using the modern Error cause option to properly chain errors, replacing the previous string concatenation approach. It also improves code readability by fixing indentation.

  • Updated error handling to use the cause option for better error chaining
  • Fixed indentation in the generated runtime code (2-space indentation)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit 7b0b083 into main Nov 23, 2025
11 checks passed
@chenjiahan chenjiahan deleted the addon_error_cause_1123 branch November 23, 2025 05:38
@chenjiahan chenjiahan mentioned this pull request Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants