Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kyay10 committed Dec 8, 2023
1 parent 1480f51 commit 1f2a31f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public inline fun <Error, A> Raise<Error>.traced(
val nested: DefaultRaise = if (isOuterTraced) this as DefaultRaise else DefaultRaise(true)
return try {
block.invoke(nested)
} catch (e: RaiseCancellationException) {
} catch (e: CancellationException) {
val r: Error = e.raisedOrRethrow(nested)
trace(Trace(e), r)
if (isOuterTraced) throw e else raise(r)
Expand Down

0 comments on commit 1f2a31f

Please sign in to comment.