Skip to content

Commit

Permalink
Fix message for resumeNextContinuation
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Oct 1, 2024
1 parent 7cce58a commit b5432fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Lock/AsyncLock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public final class AsyncLock {

mutating func resumeNextContinuation() {
guard case var .locked(continuations) = self else {
fatalError("Continuations cannot be added when unlocked")
fatalError("No continuations to resume")
}

if continuations.isEmpty {
Expand Down

0 comments on commit b5432fb

Please sign in to comment.