Skip to content

Commit 637948b

Browse files
authored
Add delimiters around the "Enable the debug feature to see the name" message (#22532)
# Objective A user on Discord was confused by this warning, assuming that the message must be corrupted in some way: ` warning[B0004]: Entity 290v0 with the Enable the debug feature to see the name component has a parent (289v0 entity) without Enable the debug feature to see the name. This will cause inconsistent behaviors! See: https://bevy.org/learn/errors/b0004 ` ## Solution Add some delimiters to the `FEATURE_DISABLED` string. This makes the warning much more legible: ` warning[B0004]: Entity 290v0 with the <Enable the debug feature to see the name> component has a parent (289v0 entity) without <Enable the debug feature to see the name>. This will cause inconsistent behaviors! See: https://bevy.org/learn/errors/b0004 `
1 parent af782a8 commit 637948b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_utils/src/debug_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use core::ops::Deref;
88
use disqualified::ShortName;
99

1010
#[cfg(not(feature = "debug"))]
11-
const FEATURE_DISABLED: &str = "Enable the debug feature to see the name";
11+
const FEATURE_DISABLED: &str = "<Enable the debug feature to see the name>";
1212

1313
/// Wrapper to help debugging ECS issues. This is used to display the names of systems, components, ...
1414
///

0 commit comments

Comments
 (0)