diff --git a/app/androidApp/src/main/kotlin/com/example/aiapp/SessionListScreen.kt b/app/androidApp/src/main/kotlin/com/example/aiapp/SessionListScreen.kt index 47b5f05..c36d310 100644 --- a/app/androidApp/src/main/kotlin/com/example/aiapp/SessionListScreen.kt +++ b/app/androidApp/src/main/kotlin/com/example/aiapp/SessionListScreen.kt @@ -86,8 +86,14 @@ fun SessionListScreen( when (val state = listState) { is LoadState.Loading -> CircularProgressIndicator() + // The message as Api.kt wrote it, with nothing added: it is + // already a whole sentence naming the address and what to + // check, so a prefix here read "Couldn't reach the server: + // Couldn't reach the server at ...". It was also a guess -- + // a delete that the server itself refused had reached it + // fine. is LoadState.Error -> Text( - "Couldn't reach the server: ${state.message}", + state.message, color = MaterialTheme.colorScheme.error, ) is LoadState.Loaded -> {