diff --git a/openpilot/system/ui/mici_setup.py b/openpilot/system/ui/mici_setup.py index 547c0f8efa..a78adfdba4 100755 --- a/openpilot/system/ui/mici_setup.py +++ b/openpilot/system/ui/mici_setup.py @@ -563,6 +563,8 @@ class Setup(Widget): except urllib.error.HTTPError as e: if e.code == 409: self._download_failed_reason = "Incompatible openpilot version." + else: + self._download_failed_reason = f"Server error ({e.code}): " + self.download_url.replace("https://", "", 1) except Exception: self._download_failed_reason = "Invalid URL: " + self.download_url.replace("https://", "", 1) diff --git a/openpilot/system/ui/tici_setup.py b/openpilot/system/ui/tici_setup.py index b74d9c7b74..f96485121b 100755 --- a/openpilot/system/ui/tici_setup.py +++ b/openpilot/system/ui/tici_setup.py @@ -408,6 +408,8 @@ class Setup(Widget): if e.code == 409: error_msg = e.read().decode("utf-8") self.download_failed(self.download_url, error_msg) + else: + self.download_failed(self.download_url, f"Server error ({e.code}).") except Exception: error_msg = "Ensure the entered URL is valid, and the device's internet connection is good." self.download_failed(self.download_url, error_msg)