feat: error message snack -> toast

This commit is contained in:
rebelonion 2024-03-20 00:23:42 -05:00
parent 6d2c01ff2b
commit 51841cf05f

View file

@ -4,6 +4,7 @@ import ani.dantotsu.connections.anilist.Anilist
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.toast
import com.lagradost.nicehttp.NiceResponse
import com.lagradost.nicehttp.Requests
import eu.kanade.tachiyomi.network.NetworkHelper
@ -389,7 +390,7 @@ object CommentsAPI {
val message = parsed?.message ?: reason ?: error
val fullMessage = if(code == 500) message else "$code: $message"
snackString(fullMessage)
toast(fullMessage)
}
}