From 0502ff711eda492f94bfe5c89689175d968ffaf7 Mon Sep 17 00:00:00 2001 From: Alex Wakefield Date: Thu, 11 Sep 2025 15:07:18 +0100 Subject: [PATCH] chore: simplify the error message When we get this error logged we end up with lots of different messages due to the aggregate ID and version number. These should be logged outside of the message to make grouping this easier. --- eventastic/src/aggregate/root.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eventastic/src/aggregate/root.rs b/eventastic/src/aggregate/root.rs index c60e1f2..90baf90 100644 --- a/eventastic/src/aggregate/root.rs +++ b/eventastic/src/aggregate/root.rs @@ -342,7 +342,7 @@ where /// This error is returned when the Repository fails to insert the event /// because the version already exists, indicating a concurrent modification. - #[error("Optimistic Concurrency Error Version {1} of aggregate {0:?} already exists")] + #[error("Optimistic Concurrency Error")] OptimisticConcurrency(T::AggregateId, u64), }