Don't unnecessarily wrap IOExceptions in UncaughtExceptionInterceptor
(cherry picked from commit 1814b3b22c3c24f781493228d85b9eb33be4cacb)
This commit is contained in:
parent
9ddd17496b
commit
166461e20f
@ -18,7 +18,11 @@ class UncaughtExceptionInterceptor : Interceptor {
|
||||
return try {
|
||||
chain.proceed(chain.request())
|
||||
} catch (e: Exception) {
|
||||
throw IOException(e)
|
||||
if (e is IOException) {
|
||||
throw e
|
||||
} else {
|
||||
throw IOException(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user