https://kotlinlang.org logo
#ktor
Title
# ktor
a

Andrew Gazelka

06/03/2019, 11:02 PM
<http://httpClient.ws|httpClient.ws>(...)
does not propagate errors... is there any way to catch them?
d

Dennis Schröder

06/04/2019, 7:40 AM
run this inside the
ws() {}
Copy code
val run = runCatching {
//your code goes here
}

run.onFailure {
  log.error {Something wrong happens}
}
or try {} catch() {} of course
e

e5l

06/04/2019, 7:52 AM
Hi, @Andrew Gazelka. It probably should be designed. Could you file an issue?
4 Views