Skip to content

Commit

Permalink
attempt to return actual error in case of request failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagolbah authored and Vladimir I committed Sep 4, 2024
1 parent 69f9081 commit e3abfa3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class SlackWebApiImpl(
)
)
if (response.isException || response.message == null) {
ChannelsList(ok = false, error = unknownError)
ChannelsList(ok = false, error = response.message ?: unknownError)
} else {
mapper.readValue(response.message, ChannelsList::class.java)
}
Expand Down

0 comments on commit e3abfa3

Please sign in to comment.