Skip to content

Commit

Permalink
fix: exceptions handling
Browse files Browse the repository at this point in the history
  • Loading branch information
y9san9 committed Nov 1, 2023
1 parent 2d554a9 commit 47f4b77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public class KtorMeetacyEngine(
block()
} catch (exception: ResponseException) {
val response = try {
json.decodeFromString<ServerResponse.Error>(exception.response.body())
json.decodeFromString<ServerResponse<Nothing>>(exception.response.body()) as ServerResponse.Error
} catch (exception: Throwable) {
throw MeetacyInternalException(cause = exception)
}
Expand Down

0 comments on commit 47f4b77

Please sign in to comment.