diff --git a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/KtorMeetacyEngine.kt b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/KtorMeetacyEngine.kt index 6f942b8..ba6b903 100644 --- a/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/KtorMeetacyEngine.kt +++ b/api/api-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/KtorMeetacyEngine.kt @@ -119,7 +119,7 @@ public class KtorMeetacyEngine( block() } catch (exception: ResponseException) { val response = try { - json.decodeFromString(exception.response.body()) + json.decodeFromString>(exception.response.body()) as ServerResponse.Error } catch (exception: Throwable) { throw MeetacyInternalException(cause = exception) }