diff --git a/crates/bevy_remote/src/builtin_methods.rs b/crates/bevy_remote/src/builtin_methods.rs index a3c38e8c3d379..d37585f39cb81 100644 --- a/crates/bevy_remote/src/builtin_methods.rs +++ b/crates/bevy_remote/src/builtin_methods.rs @@ -923,7 +923,7 @@ fn deserialize_components( let reflected: Box = TypedReflectDeserializer::new(component_type, type_registry) .deserialize(&component) - .unwrap(); + .map_err(|err| anyhow!("{component_path} is invalid: {err}"))?; reflect_components.push(reflected); }