fix: throw Exception not Error

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-06-25 21:18:50 +02:00
parent 918f25e0ac
commit e84edc2122
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ suspend fun fetchMember(serverId: String, userId: String, pure: Boolean = false)
try {
val error = RevoltJson.decodeFromString(RevoltError.serializer(), response.bodyAsText())
throw Error(error.type)
throw Exception(error.type)
} catch (e: SerializationException) {
// Not an error
}