Skip to content

fix: show error output when vp check --fix fmt fails#798

Merged
fengmk2 merged 1 commit intomainfrom
fix-check-fix-missing-stderr
Mar 12, 2026
Merged

fix: show error output when vp check --fix fmt fails#798
fengmk2 merged 1 commit intomainfrom
fix-check-fix-missing-stderr

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Mar 12, 2026

When fmt failed during vp check --fix, the error output was silently
swallowed because display logic was gated behind if !fix. Now the
error is shown via a new print_error_block helper that consolidates
the repeated error display pattern across all three fmt error paths.

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 12, 2026

Deploy Preview for viteplus-staging canceled.

Name Link
🔨 Latest commit ca867a6
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-staging/deploys/69b29c1ad3d062000897d063

Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 12, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fengmk2 fengmk2 self-assigned this Mar 12, 2026
@fengmk2 fengmk2 marked this pull request as ready for review March 12, 2026 09:54
@fengmk2 fengmk2 force-pushed the fix-check-fix-missing-stderr branch from 65ca9b6 to acdf9e9 Compare March 12, 2026 10:07
@fengmk2 fengmk2 force-pushed the fix-check-fix-missing-stderr branch from acdf9e9 to 3d4351e Compare March 12, 2026 10:54
Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 12, 2026

Merge activity

  • Mar 12, 10:55 AM UTC: Graphite rebased this pull request as part of a merge.
  • Mar 12, 10:58 AM UTC: Graphite rebased this pull request as part of a merge.
  • Mar 12, 11:22 AM UTC: @fengmk2 merged this pull request with Graphite.

When fmt failed during `vp check --fix`, the error output was silently
swallowed because display logic was gated behind `if !fix`. Now the
error is shown via a new `print_error_block` helper that consolidates
the repeated error display pattern across all three fmt error paths.
@fengmk2 fengmk2 force-pushed the fix-check-fix-missing-stderr branch from 3d4351e to ca867a6 Compare March 12, 2026 10:57
@fengmk2 fengmk2 merged commit 127711c into main Mar 12, 2026
22 checks passed
@fengmk2 fengmk2 deleted the fix-check-fix-missing-stderr branch March 12, 2026 11:22
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.

2 participants