Skip to content

fix: log update check failures via console.warn instead of silent swallow#3854

Open
SisyphusZheng wants to merge 2 commits into
freshframework:mainfrom
SisyphusZheng:fix/updatecheck-error-swalling
Open

fix: log update check failures via console.warn instead of silent swallow#3854
SisyphusZheng wants to merge 2 commits 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.
\console.debug\ output is invisible at Deno's default log level (\info\), making the fix functionally equivalent to the original silent swallow. \console.warn\ ensures the failure is visible in normal dev server output without needing \--log-level debug\.
@SisyphusZheng SisyphusZheng changed the title fix: log update check failures instead of silently swallowing fix: log update check failures via console.warn instead of silent swallow Jun 12, 2026
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