Skip to content

Commit fae4489

Browse files
authored
Use ErrorContext::RunCondition variant when reporting errors from run conditions. (#20061)
# Objective The `ErrorContext::RunCondition` variant is never used. When reporting errors from a run condition, `ErrorContext::System` is currently used instead. ## Solution Use `ErrorContext::RunCondition` variant when reporting errors from run conditions.
1 parent 2ddd884 commit fae4489

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/bevy_ecs/src/schedule/executor/multi_threaded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ unsafe fn evaluate_and_fold_conditions(
852852
if let RunSystemError::Failed(err) = err {
853853
error_handler(
854854
err,
855-
ErrorContext::System {
855+
ErrorContext::RunCondition {
856856
name: condition.name(),
857857
last_run: condition.get_last_run(),
858858
},

crates/bevy_ecs/src/schedule/executor/simple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fn evaluate_and_fold_conditions(
207207
if let RunSystemError::Failed(err) = err {
208208
error_handler(
209209
err,
210-
ErrorContext::System {
210+
ErrorContext::RunCondition {
211211
name: condition.name(),
212212
last_run: condition.get_last_run(),
213213
},

crates/bevy_ecs/src/schedule/executor/single_threaded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ fn evaluate_and_fold_conditions(
224224
if let RunSystemError::Failed(err) = err {
225225
error_handler(
226226
err,
227-
ErrorContext::System {
227+
ErrorContext::RunCondition {
228228
name: condition.name(),
229229
last_run: condition.get_last_run(),
230230
},

0 commit comments

Comments
 (0)