We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c2e65b commit 0ea765fCopy full SHA for 0ea765f
kotlinx-coroutines-core/common/src/flow/operators/Errors.kt
@@ -164,7 +164,7 @@ internal suspend fun <T> Flow<T>.catchImpl(
164
* First check ensures that we catch an original exception, not one rethrown by an operator.
165
* Seconds check ignores cancellation causes, they cannot be caught.
166
*/
167
- if (e.isSameExceptionAs(fromDownstream) || e.isCancellationCause(coroutineContext)) {
+ if (e.isSameExceptionAs(fromDownstream) || e.isCancellationCause(currentCoroutineContext())) {
168
throw e // Rethrow exceptions from downstream and cancellation causes
169
} else {
170
/*
0 commit comments