Skip to content

fix: friendly error message for network errors + Retry button#245

Merged
dimavedenyapin merged 2 commits intomainfrom
fix/updater-connection-error-ux
Apr 17, 2026
Merged

fix: friendly error message for network errors + Retry button#245
dimavedenyapin merged 2 commits intomainfrom
fix/updater-connection-error-ux

Conversation

@dimavedenyapin
Copy link
Copy Markdown
Contributor

Summary

  • Map raw network errors (net::ERR_CONNECTION_CLOSED, ENOTFOUND, ETIMEDOUT, etc.) to a user-friendly message: "Could not check for updates. Please check your internet connection and try again."
  • Add a Retry button in the error state so users can re-check without closing and reopening the dialog

Test plan

  • 15 unit tests pass
  • Manual: disconnect network, click Check for Updates → see friendly error + Retry button
  • Manual: reconnect, click Retry → resolves normally

🤖 Generated with Claude Code

dimavedenyapin and others added 2 commits April 17, 2026 17:42
- Map raw network errors (ERR_CONNECTION_CLOSED, ENOTFOUND, ETIMEDOUT)
  to user-friendly "check your internet connection" message
- Add Retry button in error state so users can re-check without
  closing and reopening the dialog

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Root cause: autoDownload=true caused a ~170MB ZIP download on every app
start. If the download fails mid-stream (GitHub CDN resets the
connection), electron-updater fires ERR_CONNECTION_CLOSED errors
repeatedly.

Changes:
- Set autoDownload=false — background checks only detect updates, the
  user triggers the download from the UpdateDialog
- Map raw network errors to user-friendly "check your internet
  connection" message
- Add Retry button in error state

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dimavedenyapin dimavedenyapin merged commit 79f504d into main Apr 17, 2026
1 check passed
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