From 5d4921cc41af2f1cac790661fc0e55389ba1eaee Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 7 Aug 2026 15:27:55 +0200 Subject: feat(engine-ecs): improve various error log messages --- engine-ecs/src/component/storage.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine-ecs/src/component/storage.rs') diff --git a/engine-ecs/src/component/storage.rs b/engine-ecs/src/component/storage.rs index 4a1c035..b56d6ba 100644 --- a/engine-ecs/src/component/storage.rs +++ b/engine-ecs/src/component/storage.rs @@ -817,16 +817,16 @@ impl ArchetypeRefIter<'_, '_, TERM_CAP> #[derive(Debug, thiserror::Error)] pub enum Error { - #[error("Entity with ID {0:?} does not exist")] + #[error("Entity {0} does not exist")] EntityDoesNotExist(Uid), - #[error("Entity with ID {entity:?} already has component with ID {component:?}")] + #[error("Entity {entity} already has component {component}")] ComponentAlreadyInEntity { entity: Uid, component: Uid }, - #[error("Entity with ID {entity:?} does not have component with ID {component:?}")] + #[error("Entity {entity} does not have component {component}")] ComponentNotFoundInEntity { entity: Uid, component: Uid @@ -834,7 +834,7 @@ pub enum Error } #[derive(Debug, thiserror::Error)] -#[error("Entity with already exists")] +#[error("Entity already exists")] pub struct EntityAlreadyExistsError; #[derive(Debug)] -- cgit v1.2.3-18-g5258