Skip to content

Conversation

nikclayton
Copy link
Contributor

Suspect a crash is occurring in the database update on the preceding
line. Log afterwards; if the log entry is missing the crash location
is confirmed.

…xception

Previous code had legacy `try ... catch` blocks that could catch all
exceptions, including `CancellationException`, thrown if the job of a
suspending function is cancelled.

Indiscriminately catching those can interfere with cancellation, so
use `currentCoroutineContext().ensureActive()` to rethrow the
exception if the job has been cancelled.
Suspect a crash is occurring in the database update on the preceding
line. Log afterwards; if the log entry is missing the crash location
is confirmed.
@nikclayton nikclayton merged commit b1ed66f into pachli:main Jan 24, 2025
24 checks passed
@nikclayton nikclayton deleted the log-marker-update branch January 24, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant