Skip to content

Commit d841f38

Browse files
Split error message by singular and plural for grammar purposes
1 parent 9989bba commit d841f38

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

crates/bevy_ecs/src/schedule/ambiguity_detection.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,14 @@ impl SystemStage {
252252
unresolved_count += at_end.len();
253253

254254
if unresolved_count > 0 {
255-
println!("\n One of your stages contains {unresolved_count} pairs of systems with unknown order and conflicting data access. \
255+
// Grammar
256+
if unresolved_count == 1 {
257+
println!("\n One of your stages contains 1 pair of systems with unknown order and conflicting data access. \
256258
You may want to add `.before()` or `.after()` constraints between some of these systems to prevent bugs.\n");
259+
} else {
260+
println!("\n One of your stages contains {unresolved_count} pairs of systems with unknown order and conflicting data access. \
261+
You may want to add `.before()` or `.after()` constraints between some of these systems to prevent bugs.\n");
262+
}
257263

258264
if report_level == ReportExecutionOrderAmbiguities::Minimal {
259265
println!("Set the level of the `ReportExecutionOrderAmbiguities` resource to `AmbiguityReportLevel::Verbose` for more details.");

0 commit comments

Comments
 (0)