Skip to content

Commit

Permalink
Use correct terminology for a NonSend run condition panic (#7841)
Browse files Browse the repository at this point in the history
# Objective

There is a panic that occurs when creating a run condition that accesses `NonSend` resources, but it refers to them as 'thread-local' resources instead.

## Solution

Correct the terminology.
  • Loading branch information
joseph-gio committed Feb 28, 2023
1 parent 998e983 commit 9e6ad46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/schedule/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn new_condition<M>(condition: impl Condition<M>) -> BoxedCondition {
let condition_system = IntoSystem::into_system(condition);
assert!(
condition_system.is_send(),
"Condition `{}` accesses thread-local resources. This is not currently supported.",
"Condition `{}` accesses `NonSend` resources. This is not currently supported.",
condition_system.name()
);

Expand Down

0 comments on commit 9e6ad46

Please sign in to comment.