Prompt user to apply Windows updates when SSL connection fails

See #3793
This commit is contained in:
Damien Elmes 2025-02-06 22:50:08 +07:00
parent 50c1155eb7
commit f893ec63af
2 changed files with 3 additions and 1 deletions

View file

@ -46,6 +46,7 @@ errors-unable-open-collection =
Debug info:
errors-windows-tts-runtime-error = The TTS service failed. Please ensure Windows updates are installed, try restarting your computer, or try a different voice.
errors-windows-ssl-updates = Secure connection failed. Please ensure Windows updates are installed, then try again.
## OBSOLETE; you do not need to translate this

View file

@ -232,7 +232,8 @@ class ErrorHandler(QObject):
if "disk I/O error" in error:
showWarning(markdown(tr.errors_accessing_db()))
return
if is_chromium_cert_error(error):
if "unable to get local issuer certificate" in error and is_win:
showWarning(tr.errors_windows_ssl_updates())
return
debug_text = supportText() + "\n" + error