From 557e582ec55f325256011ee6e39e97a3d44b2fc3 Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Tue, 27 Feb 2024 22:23:27 -0500 Subject: [PATCH] Add a colon to error message link (#12174) # Objective - #12165 recently added links to Bevy errors in error messages. - The links were in the form of `See: https://bevyengine.org/learn/errors/#b000N` - B0004 does not have the colon separating `See` and the link, unlike the rest of the error messages ## Solution - Add a colon, for consistency :) --- crates/bevy_hierarchy/src/valid_parent_check_plugin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_hierarchy/src/valid_parent_check_plugin.rs b/crates/bevy_hierarchy/src/valid_parent_check_plugin.rs index 764a4f6eea9aa..d5d0783c1e328 100644 --- a/crates/bevy_hierarchy/src/valid_parent_check_plugin.rs +++ b/crates/bevy_hierarchy/src/valid_parent_check_plugin.rs @@ -66,7 +66,7 @@ pub fn check_hierarchy_component_has_valid_parent( already_diagnosed.insert(entity); bevy_log::warn!( "warning[B0004]: {name} with the {ty_name} component has a parent without {ty_name}.\n\ - This will cause inconsistent behaviors! See https://bevyengine.org/learn/errors/#b0004", + This will cause inconsistent behaviors! See: https://bevyengine.org/learn/errors/#b0004", ty_name = get_short_name(std::any::type_name::()), name = name.map_or("An entity".to_owned(), |s| format!("The {s} entity")), );