Skip to content

fix(CLI): simplify build error logs#1408

Merged
Timeless0911 merged 1 commit intomainfrom
error-enhance
Dec 24, 2025
Merged

fix(CLI): simplify build error logs#1408
Timeless0911 merged 1 commit intomainfrom
error-enhance

Conversation

@Timeless0911
Copy link
Copy Markdown
Contributor

@Timeless0911 Timeless0911 commented Dec 24, 2025

Summary

Simplify build error logs

before
image

now
image

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings December 24, 2025 09:35
Copy link
Copy Markdown
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 simplifies build error logging by conditionally suppressing the "Failed to build." message when an Rspack-specific build error occurs. The change reduces redundant error messages in the CLI output.

Key Changes

  • Added RSPACK_BUILD_ERROR constant to identify Rspack build failures
  • Modified error handling to skip logging "Failed to build." when the error is already an Rspack build error
  • Preserved existing error logging for non-Rspack errors and AggregateErrors

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

@Timeless0911 Timeless0911 merged commit 388b014 into main Dec 24, 2025
24 checks passed
@Timeless0911 Timeless0911 deleted the error-enhance branch December 24, 2025 09:43
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