Skip to content

fix: log update check failures instead of silently swallowing#3854

Open
SisyphusZheng wants to merge 1 commit into
freshframework:mainfrom
SisyphusZheng:fix/updatecheck-error-swalling
Open

fix: log update check failures instead of silently swallowing#3854
SisyphusZheng wants to merge 1 commit into
freshframework:mainfrom
SisyphusZheng:fix/updatecheck-error-swalling

Conversation

@SisyphusZheng

Copy link
Copy Markdown
Contributor

The update check in both the esbuild builder (\packages/fresh/src/dev/builder.ts) and Vite plugin (\packages/plugin-vite/src/mod.ts) used .catch(() => {})\ which silently discards all errors.

Network failures, parse errors, and timeouts during version checking were never surfaced to the developer, even in verbose/debug mode.

This PR logs failures via \console.debug\ so they appear in debug output without cluttering normal dev server logs.

The update check in both the esbuild builder and Vite plugin used \.catch(() => {})\ which silently discards all errors. This means network failures, parse errors, and timeouts during version checking are never surfaced to the developer.

Log failures via \console.debug\ so they appear in verbose/debug output without cluttering normal dev server output.
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.

1 participant