From f893ec63af24df2d7a5afca60de8aaef7e2d04f9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 6 Feb 2025 22:50:08 +0700 Subject: [PATCH] Prompt user to apply Windows updates when SSL connection fails See #3793 --- ftl/qt/errors.ftl | 1 + qt/aqt/errors.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ftl/qt/errors.ftl b/ftl/qt/errors.ftl index 1b4e69236..984116e1a 100644 --- a/ftl/qt/errors.ftl +++ b/ftl/qt/errors.ftl @@ -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 diff --git a/qt/aqt/errors.py b/qt/aqt/errors.py index 9ebda65bc..1896affbe 100644 --- a/qt/aqt/errors.py +++ b/qt/aqt/errors.py @@ -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