Skip to content

Commit

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

# 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 authored and Shfty committed Mar 19, 2023
1 parent 3a0f0b3 commit 13764d4
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 13764d4

Please sign in to comment.