Updated remaining system panic messages to include the system name (#1986)
Some panic messages for systems include the system name, but there's a few panic messages which do not. This PR adds the system name for the remaining panic messages. This is a continuation of the work done in #1864. Related: #1846
This commit is contained in:
parent
e3fb23d4d3
commit
0a587ac3b5
@ -407,7 +407,8 @@ impl<'a, T: Component> SystemParamFetch<'a> for ResMutState<T> {
|
||||
.get_resource_unchecked_mut_with_id(state.component_id)
|
||||
.unwrap_or_else(|| {
|
||||
panic!(
|
||||
"Requested resource does not exist: {}",
|
||||
"Resource requested by {} does not exist: {}",
|
||||
system_state.name,
|
||||
std::any::type_name::<T>()
|
||||
)
|
||||
});
|
||||
@ -741,7 +742,8 @@ impl<'a, T: 'static> SystemParamFetch<'a> for NonSendState<T> {
|
||||
.get_populated_resource_column(state.component_id)
|
||||
.unwrap_or_else(|| {
|
||||
panic!(
|
||||
"Requested non-send resource does not exist: {}",
|
||||
"Non-send resource requested by {} does not exist: {}",
|
||||
system_state.name,
|
||||
std::any::type_name::<T>()
|
||||
)
|
||||
});
|
||||
@ -871,7 +873,8 @@ impl<'a, T: 'static> SystemParamFetch<'a> for NonSendMutState<T> {
|
||||
.get_populated_resource_column(state.component_id)
|
||||
.unwrap_or_else(|| {
|
||||
panic!(
|
||||
"Requested non-send resource does not exist: {}",
|
||||
"Non-send resource requested by {} does not exist: {}",
|
||||
system_state.name,
|
||||
std::any::type_name::<T>()
|
||||
)
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user