552d9f02bee1

fix: surface actual exception in update error messages (v2.9.29)

The generic catch in download() and check() swallowed the real exception behind 'Download failed — check your connection'. Now shows the exception class and message so the root cause is visible on-device.

time
2026-08-02 00:02 UTC · 2 months ago
machine
koh2
parent
a0476f1fd4cd
3 files VERSION+1 −1app/build.gradle+1 −1app/src/main/java/com/peachpasswords/ui/updates/UpdateScreen.kt+2 −2
VERSION+1 −1
@@ -1 +1 @@1-2.9.281+2.9.29

view file

app/build.gradle+1 −1
@@ -32,7 +32,7 @@3232         minSdk 263333         targetSdk 353434         // Keep the Android code in Gradle; the semantic name comes from root VERSION.35-        versionCode 24016535+        versionCode 2401663636         versionName semanticVersion3737 3838         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

view file

app/src/main/java/com/peachpasswords/ui/updates/UpdateScreen.kt+2 −2
@@ -110,7 +110,7 @@110110                 // about — keep it offerable rather than dropping to a dead end.111111                 _state.value.copy(112112                     phase = if (_state.value.manifest != null) UpdatePhase.Available else UpdatePhase.Failed,113-                    error = "Couldn't reach the update server — check your connection",113+                    error = "Couldn't reach the update server: ${e.javaClass.simpleName}: ${e.message ?: "unknown error"}",114114                 )115115             }116116         }@@ -138,7 +138,7 @@138138                 _state.value.copy(139139                     phase = UpdatePhase.Failed,140140                     apk = null,141-                    error = "Download failed — check your connection and try again",141+                    error = "Download failed: ${e.javaClass.simpleName}: ${e.message ?: "unknown error"}",142142                 )143143             }144144         }

view file