Skip to content

Commit

Permalink
Change error messages in assertions according to suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrfslashhome committed Dec 23, 2024
1 parent e701ac2 commit cddc742
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sync/Context.mpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Context: [{
wait: [
done? ~ [
[data.waitedBy nil? ] "multiple attempts to wait on the same fiber" assert
[data.fiber currentFiber is ~] "attempt to wait on self" assert
[data.fiber currentFiber is ~] "attempted to wait on self" assert

@currentFiber @data.!waitedBy
canceled? [
Expand Down
2 changes: 1 addition & 1 deletion sync/ContextGroup.mpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ ContextGroup: [{

[fibers.empty? ~] [
[fibers.first.waitedBy nil? ] "multiple attempts to wait on the same fiber" assert
[fibers.first.fiber currentFiber is ~] "attempt to wait on self" assert
[fibers.first.fiber currentFiber is ~] "attempted to wait on self" assert

@currentFiber @fibers.@first.!waitedBy
canceled? ~ [
Expand Down

0 comments on commit cddc742

Please sign in to comment.