Skip to content

Commit

Permalink
chore: log.e catalog error
Browse files Browse the repository at this point in the history
  • Loading branch information
muedsa committed Feb 18, 2025
1 parent fe9aa28 commit 3813593
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import com.muedsa.tvbox.screens.nav
import com.muedsa.tvbox.screens.plugin.useLocalHomeScreenBackgroundState
import com.muedsa.tvbox.toCardType
import kotlinx.coroutines.launch
import timber.log.Timber
import kotlin.math.min

@Composable
Expand Down Expand Up @@ -182,6 +183,7 @@ fun CatalogPagingWidget(

fun toastLoadStateError(loadState: LoadState, toastController: ToastMessageBoxController) {
if (loadState is LoadState.Error) {
Timber.e(loadState.error, "catalog loadState error")
toastController.error(loadState.error)
}
}

0 comments on commit 3813593

Please sign in to comment.