Modern Apps git

← Modern-Apps.git

errors: authored reasons stay visible; test assertions follow the friendly contract

Commit
2ad4d685bbc7289e2d4cb5e9dca8623460174036
Author
Vayun Mathur <[email protected]>
When
2026-11-21 04:23 UTC (15 days ago)
Parents
b17bf5f
CI fallout from the friendlyError round, classified per test:
several screens double-mapped already user-facing strings
through friendlyError, genericising authored/server reasons -
addon lastError, watch resolve errors, web's server error now
render verbatim (their sources already map genuine
exceptions). uniflix's detail resolve keeps providers' authored
'no streams' reasons via the toStateError pattern; madeveloper
raises its authored download/hash failures as authored errors
so the actionable message survives (genuine fetch failures
still map friendly, URLs never leak). Remaining raw-exception
assertions (madeveloper 404s, weather placeholder) now assert
the correct friendly strings.

Verified: uniflix, web, madeveloper, weather, music suites.

Diff

madeveloper/src/main/java/com/vayunmathur/madeveloper/platform/MaDevViewModel.kt
diff --git a/madeveloper/src/main/java/com/vayunmathur/madeveloper/platform/MaDevViewModel.kt b/madeveloper/src/main/java/com/vayunmathur/madeveloper/platform/MaDevViewModel.ktindex 5f4f99b6b2..e58c59c1ea 100644--- a/madeveloper/src/main/java/com/vayunmathur/madeveloper/platform/MaDevViewModel.kt+++ b/madeveloper/src/main/java/com/vayunmathur/madeveloper/platform/MaDevViewModel.kt@@ -77,6 +77,21 @@ class MaDevViewModel(app: Application) : AndroidViewModel(app) {         { deviceName -> DevRegistrar().register(deviceName) }     internal var apkFetcher: suspend (String) -> Pair<Int, ByteArray> =         { url -> NetworkClient.performRequestBytes(url) }+    /**+     * Maps a failed pushed install to the text stored in [PendingInstall.error].+     *+     * This class raises its own known conditions with `error(...)`+     * ("Download failed: HTTP <status>", "APK hash does not match the+     * pushed sha256"): those are authored and actionable (the hash one is+     * security-relevant), so keep them verbatim. Every other throwable is+     * a genuine caught exception - never surface its raw text, map it+     * through [friendlyError] instead. (Same contract as securemail's+     * toStateError.)+     */+    private fun Throwable.toStateError(): String =+        (this as? IllegalStateException)?.message?.takeIf { it.isNotBlank() }+            ?: getApplication<Application>().friendlyError(this)+     private val pairing = PairingStore(app)     private var transport: DevSocketTransport? = null     private var reconnectAttempt = 0@@ -280,13 +295,13 @@ class MaDevViewModel(app: Application) : AndroidViewModel(app) {             try {                 val bytes = withContext(Dispatchers.IO) {                     val (status, data) = apkFetcher(install.apkUrl)-                    if (status !in 200..299) throw java.io.IOException("Download failed: HTTP $status")+                    if (status !in 200..299) error("Download failed: HTTP $status")                     data                 }                 val verifying = currentPending(install.pkg) ?: install                 updatePending(DevProtocol.transition(verifying, InstallPhase.VERIFYING, 1f))                 if (!DevProtocol.verifySha256(bytes, install.sha256)) {-                    throw java.io.IOException("APK hash does not match the pushed sha256")+                    error("APK hash does not match the pushed sha256")                 }                 val file = withContext(Dispatchers.IO) {                     val name = "push-" + install.pkg + ".apk"@@ -295,10 +310,12 @@ class MaDevViewModel(app: Application) : AndroidViewModel(app) {                 val ready = DevProtocol.transition(currentPending(install.pkg) ?: install, InstallPhase.READY, 1f)                 updatePending(ready.copy())                 InstallNotifications.showReady(getApplication(), ready)-            } catch (e: java.io.IOException) {+            } catch (e: kotlinx.coroutines.CancellationException) {+                throw e+            } catch (e: Exception) {                 val current = currentPending(install.pkg) ?: install                 state = state.copy(pending = state.pending.map { item ->-                    if (item.pkg == install.pkg) item.copy(phase = InstallPhase.FAILED, error = getApplication<Application>().friendlyError(e)) else item+                    if (item.pkg == install.pkg) item.copy(phase = InstallPhase.FAILED, error = e.toStateError()) else item                 })             }         }
madeveloper/src/main/java/com/vayunmathur/madeveloper/ui/PushScreen.kt
diff --git a/madeveloper/src/main/java/com/vayunmathur/madeveloper/ui/PushScreen.kt b/madeveloper/src/main/java/com/vayunmathur/madeveloper/ui/PushScreen.ktindex 123ab2364b..403be2c82b 100644--- a/madeveloper/src/main/java/com/vayunmathur/madeveloper/ui/PushScreen.kt+++ b/madeveloper/src/main/java/com/vayunmathur/madeveloper/ui/PushScreen.kt@@ -9,7 +9,6 @@ import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import com.vayunmathur.library.ui.AppScaffold-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.library.ui.Button import com.vayunmathur.library.ui.DashboardSection import com.vayunmathur.library.ui.DashboardSectionDivider@@ -98,7 +97,7 @@ fun PushScreen(state: MaDevUiState, onInstall: (String) -> Unit, onBack: () -> U                                                 " · version " + pending.versionCode,                                         )                                         pending.error?.let {-                                            Text(friendlyErrorMessage(it), color = MaterialTheme.colorScheme.error)+                                            Text(it, color = MaterialTheme.colorScheme.error)                                         }                                     }                                 },
madeveloper/src/test/java/com/vayunmathur/madeveloper/platform/MaDevViewModelTest.kt
diff --git a/madeveloper/src/test/java/com/vayunmathur/madeveloper/platform/MaDevViewModelTest.kt b/madeveloper/src/test/java/com/vayunmathur/madeveloper/platform/MaDevViewModelTest.ktindex dca58e39d7..0b6b4ecc09 100644--- a/madeveloper/src/test/java/com/vayunmathur/madeveloper/platform/MaDevViewModelTest.kt+++ b/madeveloper/src/test/java/com/vayunmathur/madeveloper/platform/MaDevViewModelTest.kt@@ -132,7 +132,7 @@ class MaDevViewModelTest {         val viewModel = vm()         viewModel.refresh()         await("error shown") { viewModel.state.error != null }-        assertTrue(viewModel.state.error!!.contains("404"), viewModel.state.error!!)+        assertEquals("The requested content was not found.", viewModel.state.error)         assertFalse(viewModel.state.loading)     } @@ -202,7 +202,7 @@ class MaDevViewModelTest {         val viewModel = vm()         viewModel.loadRepo("Modern-Apps")         await("repo error") { viewModel.state.repoError != null }-        assertTrue(viewModel.state.repoError!!.contains("404"))+        assertEquals("The requested content was not found.", viewModel.state.repoError)         assertNull(viewModel.browser("Modern-Apps"))     } 
uniflix/src/main/java/com/vayunmathur/uniflix/domain/PluginRegistry.kt
diff --git a/uniflix/src/main/java/com/vayunmathur/uniflix/domain/PluginRegistry.kt b/uniflix/src/main/java/com/vayunmathur/uniflix/domain/PluginRegistry.ktindex f3d2459f33..132e9409b7 100644--- a/uniflix/src/main/java/com/vayunmathur/uniflix/domain/PluginRegistry.kt+++ b/uniflix/src/main/java/com/vayunmathur/uniflix/domain/PluginRegistry.kt@@ -9,7 +9,11 @@ sealed interface ResolutionResult {     data object NoPluginsEnabled : ResolutionResult      /** Every enabled addon failed; per-addon messages for the error badge. */-    data class AllFailed(val errorsByAddon: Map<String, String>) : ResolutionResult+    data class AllFailed(+        val errorsByAddon: Map<String, String>,+        /** The original failures, so callers can tell authored provider reasons from raw exceptions. */+        val failuresByAddon: Map<String, Throwable> = emptyMap(),+    ) : ResolutionResult }  /**@@ -33,16 +37,18 @@ class PluginRegistry(     ): ResolutionResult {         if (providers.isEmpty()) return ResolutionResult.NoPluginsEnabled         val errors = linkedMapOf<String, String>()+        val failures = linkedMapOf<String, Throwable>()         for ((addonId, provider) in providers) {             val source = runCatching {                 provider.resolve(tmdbId, mediaType, season, episode, server)             }.getOrElse {                 errors[addonId] = it.message ?: "Unknown error"+                failures[addonId] = it                 null             } ?: continue             return ResolutionResult.Success(source, addonId)         }-        return ResolutionResult.AllFailed(errors)+        return ResolutionResult.AllFailed(errors, failures)     }      suspend fun alternates(
uniflix/src/main/java/com/vayunmathur/uniflix/platform/DetailViewModel.kt
diff --git a/uniflix/src/main/java/com/vayunmathur/uniflix/platform/DetailViewModel.kt b/uniflix/src/main/java/com/vayunmathur/uniflix/platform/DetailViewModel.ktindex f2819c1bf0..e4b85d68cf 100644--- a/uniflix/src/main/java/com/vayunmathur/uniflix/platform/DetailViewModel.kt+++ b/uniflix/src/main/java/com/vayunmathur/uniflix/platform/DetailViewModel.kt@@ -8,7 +8,6 @@ import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.viewModelScope import com.vayunmathur.library.log.Log import com.vayunmathur.library.ui.friendlyError-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.library.util.AppMessages import com.vayunmathur.uniflix.data.AddonPrefs import com.vayunmathur.uniflix.data.AddonStreamProvider@@ -138,6 +137,21 @@ class DetailViewModel(app: Application) : AndroidViewModel(app) {     var state by mutableStateOf(DetailUiState())         private set +    /**+     * Maps a resolve failure to the text stored in [DetailUiState.resolveError].+     *+     * Providers raise their known conditions with `error(...)`+     * (AddonStreamProvider's "Addon 'X' has no streams for this title",+     * "returned <status>: <server reason>", JsStreamProvider's wrapped+     * reasons): those are addon/server-authored and actionable, so keep+     * them verbatim. Every other throwable is a genuine caught exception -+     * never surface its raw text, map it through [friendlyError] instead.+     * (Same contract as securemail's toStateError.)+     */+    private fun Throwable.toStateError(): String =+        (this as? IllegalStateException)?.message?.takeIf { it.isNotBlank() }+            ?: getApplication<Application>().friendlyError(this)+     fun notesFor(tmdbId: Int, mediaType: MediaType) =         repository.notesFor(tmdbId, mediaType.name.lowercase()) @@ -220,10 +234,11 @@ class DetailViewModel(app: Application) : AndroidViewModel(app) {                     state = state.copy(resolving = false, providerMissing = true)                 }                 is ResolutionResult.AllFailed -> {-                    val rawMessage = result.errorsByAddon.values.firstOrNull() ?: "Unknown error"-                    val message = getApplication<Application>().friendlyErrorMessage(rawMessage)+                    val failure = result.failuresByAddon.values.firstOrNull()+                    val message = failure?.toStateError()+                        ?: result.errorsByAddon.values.firstOrNull() ?: "Unknown error"                     state = state.copy(resolving = false, resolveError = message)-                    Log.error(TAG, "Stream failed to resolve: $rawMessage")+                    Log.error(TAG, "Stream failed to resolve: ${failure?.message}")                     AppMessages.show("Stream failed to resolve: $message")                 }             }
uniflix/src/main/java/com/vayunmathur/uniflix/ui/AddonCard.kt
diff --git a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/AddonCard.kt b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/AddonCard.ktindex 958e1ca097..ba39ea3645 100644--- a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/AddonCard.kt+++ b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/AddonCard.kt@@ -22,7 +22,6 @@ import com.vayunmathur.library.ui.MaterialTheme import com.vayunmathur.library.ui.Switch import com.vayunmathur.library.ui.Text import com.vayunmathur.library.ui.TextButton-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.uniflix.platform.AddonRow  /** One installed addon: identity, toggles, ordering, health, and actions. */@@ -64,7 +63,7 @@ fun AddonCard(                         verticalAlignment = Alignment.CenterVertically,                     ) {                         IconWarning()-                        Text(friendlyErrorMessage(error), style = MaterialTheme.typography.bodySmall, modifier = Modifier.weight(1f))+                        Text(error, style = MaterialTheme.typography.bodySmall, modifier = Modifier.weight(1f))                     }                 }             }
uniflix/src/main/java/com/vayunmathur/uniflix/ui/AddonDetailScreen.kt
diff --git a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/AddonDetailScreen.kt b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/AddonDetailScreen.ktindex 445cc5c131..2973a4685e 100644--- a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/AddonDetailScreen.kt+++ b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/AddonDetailScreen.kt@@ -25,7 +25,6 @@ import com.vayunmathur.library.ui.OutlinedButton import com.vayunmathur.library.ui.OutlinedTextField import com.vayunmathur.library.ui.Switch import com.vayunmathur.library.ui.Text-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.uniflix.platform.AddonsViewModel  /**@@ -57,7 +56,7 @@ fun AddonDetailScreen(addonDbId: Long, onBack: () -> Unit) {                 if (entity.version.isNotBlank()) {                     Text("Version: ${entity.version}")                 }-                entity.lastError?.let { Text("Last error: ${friendlyErrorMessage(it)}") }+                entity.lastError?.let { Text("Last error: $it") }                 Row(                     modifier = Modifier.fillMaxWidth(),                     horizontalArrangement = Arrangement.SpaceBetween,
uniflix/src/main/java/com/vayunmathur/uniflix/ui/DetailScreen.kt
diff --git a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/DetailScreen.kt b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/DetailScreen.ktindex b42671d8cd..b51dc10f0e 100644--- a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/DetailScreen.kt+++ b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/DetailScreen.kt@@ -26,7 +26,6 @@ import com.vayunmathur.library.ui.Card import com.vayunmathur.library.ui.CircularProgressIndicator import com.vayunmathur.library.ui.DesktopMaxWidthContainer import com.vayunmathur.library.ui.ErrorState-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.library.ui.MaterialTheme import com.vayunmathur.library.ui.OutlinedButton import com.vayunmathur.library.ui.OutlinedTextField@@ -143,7 +142,7 @@ fun DetailScreen(                     }                 }                 state.resolveError?.let { error ->-                    Text("Resolve failed: ${friendlyErrorMessage(error)}", style = MaterialTheme.typography.bodySmall)+                    Text("Resolve failed: $error", style = MaterialTheme.typography.bodySmall)                 }                 state.source?.let { source ->                     Text("Resolved: ${source.title}", style = MaterialTheme.typography.bodySmall)
uniflix/src/main/java/com/vayunmathur/uniflix/ui/WatchScreen.kt
diff --git a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/WatchScreen.kt b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/WatchScreen.ktindex eb7ee8b521..3606e8940a 100644--- a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/WatchScreen.kt+++ b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/WatchScreen.kt@@ -38,7 +38,6 @@ import androidx.media3.common.util.UnstableApi import androidx.media3.ui.compose.PlayerSurface import androidx.media3.ui.compose.SURFACE_TYPE_TEXTURE_VIEW import com.vayunmathur.library.ui.Button-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.library.ui.CircularProgressIndicator import com.vayunmathur.library.ui.FadeVisibility import com.vayunmathur.library.ui.IconButton@@ -204,7 +203,7 @@ fun WatchScreen(          if (loadFailed) {             WatchErrorPanel(-                message = state.resolveError?.let { friendlyErrorMessage(it) } ?: "No stream available for this title.",+                message = state.resolveError ?: "No stream available for this title.",                 onRetry = onRetry,                 modifier = Modifier.align(Alignment.Center),             )@@ -212,7 +211,7 @@ fun WatchScreen(          playerState.playerError?.let { error ->             WatchErrorPanel(-                message = friendlyErrorMessage(error),+                message = error,                 onRetry = {                     carriedPosition = playerState.positionMs                     retryTicket++
uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvAddons.kt
diff --git a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvAddons.kt b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvAddons.ktindex 58f4d5d3b7..d2b4fe9cd7 100644--- a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvAddons.kt+++ b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvAddons.kt@@ -31,7 +31,6 @@ import com.vayunmathur.library.tv.TvTextField import com.vayunmathur.library.tv.tvFullWidth import com.vayunmathur.library.ui.IconAdd import com.vayunmathur.library.ui.friendlyError-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.library.ui.IconRefresh import com.vayunmathur.library.ui.IconUpload import com.vayunmathur.library.ui.R as UiR@@ -151,7 +150,7 @@ internal fun TvAddonCard(             entity.baseUrl.ifBlank { entity.manifestUrl.ifBlank { null } },             entity.version.ifBlank { null }?.let { "v$it" },         ).joinToString("  •  ").ifBlank { null },-        description = entity.lastError?.let { friendlyErrorMessage(it) },+        description = entity.lastError,         badges = {             if (row.isDefault) TvBadge(text = stringResource(R.string.default_addon_short))             if (!entity.enabled) TvBadge(text = stringResource(R.string.disabled))
uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvDetail.kt
diff --git a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvDetail.kt b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvDetail.ktindex a65e063ba2..78532f1c87 100644--- a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvDetail.kt+++ b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvDetail.kt@@ -39,7 +39,6 @@ import com.vayunmathur.library.tv.tvContentStart import com.vayunmathur.library.tv.tvFullWidth import com.vayunmathur.library.tv.tvGridHeader import com.vayunmathur.library.ui.R as UiR-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.library.util.NavBackStack import com.vayunmathur.uniflix.R import com.vayunmathur.uniflix.data.TmdbImageUrl@@ -159,7 +158,7 @@ private fun DetailPane(         DetailMetaLines(detail = detail)         state.resolveError?.let { error ->             Text(-                text = friendlyErrorMessage(error),+                text = error,                 style = MaterialTheme.typography.bodySmall,                 color = MaterialTheme.colorScheme.error,             )
uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvWatch.kt
diff --git a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvWatch.kt b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvWatch.ktindex 16df9f9b25..dd0a8c40ec 100644--- a/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvWatch.kt+++ b/uniflix/src/main/java/com/vayunmathur/uniflix/ui/tv/TvWatch.kt@@ -34,7 +34,6 @@ import com.vayunmathur.library.tv.TvButton import com.vayunmathur.library.tv.TvEmptyState import com.vayunmathur.library.tv.TvLoading import com.vayunmathur.library.ui.R as UiR-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.library.util.NavBackStack import com.vayunmathur.uniflix.R import com.vayunmathur.uniflix.domain.SubtitleTrack@@ -220,7 +219,7 @@ fun TvWatchPage(         }         if (loadFailed) {             TvEmptyState(-                title = state.resolveError?.let { friendlyErrorMessage(it) } ?: stringResource(R.string.no_results),+                title = state.resolveError ?: stringResource(R.string.no_results),                 isError = true,                 action = {                     TvButton(
uniflix/src/test/java/com/vayunmathur/uniflix/ui/DetailHomeSearchComposeTest.kt
diff --git a/uniflix/src/test/java/com/vayunmathur/uniflix/ui/DetailHomeSearchComposeTest.kt b/uniflix/src/test/java/com/vayunmathur/uniflix/ui/DetailHomeSearchComposeTest.ktindex 0e3be613f2..c0667b4f42 100644--- a/uniflix/src/test/java/com/vayunmathur/uniflix/ui/DetailHomeSearchComposeTest.kt+++ b/uniflix/src/test/java/com/vayunmathur/uniflix/ui/DetailHomeSearchComposeTest.kt@@ -110,7 +110,7 @@ class DetailHomeSearchComposeTest {                     onAddNote = { _, _ -> }, onOpenDetail = {}, onOpenAddons = {})             }         }-        composeRule.onNodeWithText("Detail failed to load.").assertIsDisplayed()+        composeRule.onNodeWithText("Detail failed to load").assertIsDisplayed()     }  }
weather/src/test/java/com/vayunmathur/weather/ui/ComposeScreensTest.kt
diff --git a/weather/src/test/java/com/vayunmathur/weather/ui/ComposeScreensTest.kt b/weather/src/test/java/com/vayunmathur/weather/ui/ComposeScreensTest.ktindex c445ec470e..129a33bb53 100644--- a/weather/src/test/java/com/vayunmathur/weather/ui/ComposeScreensTest.kt+++ b/weather/src/test/java/com/vayunmathur/weather/ui/ComposeScreensTest.kt@@ -93,7 +93,8 @@ class ComposeScreensTest {                 onOpenMap = { _, _ -> },             )         }-        rule.onNodeWithText("Boom").assertIsDisplayed()+        rule.onNodeWithText("Could not load forecast").assertIsDisplayed()+        rule.onNodeWithText("Something went wrong. Try again.").assertIsDisplayed()     }      @Test fun forecastColumnSelected() {
web/src/main/java/com/vayunmathur/web/ui/SearchImageResults.kt
diff --git a/web/src/main/java/com/vayunmathur/web/ui/SearchImageResults.kt b/web/src/main/java/com/vayunmathur/web/ui/SearchImageResults.ktindex 4ecc933f5a..09544d06e6 100644--- a/web/src/main/java/com/vayunmathur/web/ui/SearchImageResults.kt+++ b/web/src/main/java/com/vayunmathur/web/ui/SearchImageResults.kt@@ -35,7 +35,6 @@ import com.vayunmathur.library.ui.Button import com.vayunmathur.library.ui.CircularProgressIndicator import com.vayunmathur.library.ui.EmptyState import com.vayunmathur.library.ui.friendlyError-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.library.ui.MaterialTheme import com.vayunmathur.library.ui.OutlinedButton import com.vayunmathur.library.ui.Text@@ -157,7 +156,7 @@ private fun SearchImageErrorState(         if (message.isNotBlank()) {             Spacer(Modifier.height(8.dp))             Text(-                friendlyErrorMessage(message),+                message,                 style = MaterialTheme.typography.bodySmall,                 color = MaterialTheme.colorScheme.onSurfaceVariant,                 maxLines = 3,
web/src/main/java/com/vayunmathur/web/ui/SearchResultsPage.kt
diff --git a/web/src/main/java/com/vayunmathur/web/ui/SearchResultsPage.kt b/web/src/main/java/com/vayunmathur/web/ui/SearchResultsPage.ktindex a4a5df0cbf..35db4ccbd0 100644--- a/web/src/main/java/com/vayunmathur/web/ui/SearchResultsPage.kt+++ b/web/src/main/java/com/vayunmathur/web/ui/SearchResultsPage.kt@@ -27,7 +27,6 @@ import com.vayunmathur.library.ui.CircularProgressIndicator import com.vayunmathur.library.ui.DesktopMaxWidthContainer import com.vayunmathur.library.ui.EmptyState import com.vayunmathur.library.ui.friendlyError-import com.vayunmathur.library.ui.friendlyErrorMessage import com.vayunmathur.library.ui.ExperimentalMaterial3Api import com.vayunmathur.library.ui.MaterialTheme import com.vayunmathur.library.ui.Tab@@ -209,7 +208,7 @@ private fun SearchErrorState(         if (message.isNotBlank()) {             Spacer(Modifier.height(8.dp))             Text(-                friendlyErrorMessage(message),+                message,                 style = MaterialTheme.typography.bodySmall,                 color = MaterialTheme.colorScheme.onSurfaceVariant,                 maxLines = 3,