Skip to content

Conversation

@2heal1
Copy link
Member

@2heal1 2heal1 commented Nov 11, 2024

Description

log error if the code is not ETIMEDOUT

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

@changeset-bot
Copy link

changeset-bot bot commented Nov 11, 2024

⚠️ No Changeset found

Latest commit: 065a23e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Nov 11, 2024

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 065a23e
🔍 Latest deploy log https://app.netlify.com/sites/module-federation-docs/deploys/6731d710d55b130008dc05d7
😎 Deploy Preview https://deploy-preview-3203--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Summary

The pull request introduces an improvement to the error handling in the ModuleFederationDevServer class within the dts-plugin package. The key changes are:

  • Added new error handling logic to log errors when the error code is not ETIMEDOUT. Previously, the code only handled the ETIMEDOUT case.
  • This ensures that any other unexpected errors are properly surfaced and can be investigated further, improving the overall robustness of the codebase.
  • The changes are accompanied by updated tests to cover the new error handling behavior.
  • The documentation has also been updated to reflect these changes.

Overall, this pull request enhances the error handling capabilities of the ModuleFederationDevServer class, making the codebase more resilient and easier to debug in production environments.

File Summaries
File Summary
packages/dts-plugin/src/server/DevServer.ts The code changes introduce a new error handling logic for the ModuleFederationDevServer class. If the error code received is not ETIMEDOUT, the code now logs the error to the console instead of just handling the ETIMEDOUT case. This ensures that any other unexpected errors are properly surfaced and can be investigated further.

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

85990e2d231874c916270b685a13eca46ee983e0...065a23e8ddf4fca3f3455c6d29fc0e850571c590

Files Reviewed
  • packages/dts-plugin/src/server/DevServer.ts

@zhoushaw zhoushaw merged commit cd59ae5 into main Nov 11, 2024
17 checks passed
@zhoushaw zhoushaw deleted the chore/log-error branch November 11, 2024 10:22
@KyrieLii KyrieLii mentioned this pull request Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants