Skip to content

Commit

Permalink
fix: rsocket serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
y9san9 committed Nov 1, 2023
1 parent 151ec13 commit a468dab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ internal inline fun <T> handleRSocketExceptions(
} catch (exception: RSocketError) {
when (exception) {
is RSocketError.Custom -> {
val response = json.decodeFromString<ServerResponse.Error>(
val response = json.decodeFromString<ServerResponse<Nothing>>(
string = exception.message ?: meetacyApiError(message = "Message should be present when throwing custom error")
)
) as ServerResponse.Error
throw getException(response)
}
else -> {
Expand Down

0 comments on commit a468dab

Please sign in to comment.