Use correct terminology for a NonSend run condition panic (#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.
This commit is contained in:
JoJoJet 2023-02-28 03:38:02 +00:00
parent 998e983bac
commit 9e6ad4607f

View file

@ -58,7 +58,7 @@ fn new_condition<M>(condition: impl Condition<M>) -> BoxedCondition {
let condition_system = IntoSystem::into_system(condition); let condition_system = IntoSystem::into_system(condition);
assert!( assert!(
condition_system.is_send(), 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() condition_system.name()
); );