Island: Add message to error on save

This commit is contained in:
Kekoa Kaaikala 2022-09-14 18:43:52 +00:00
parent 5f44204583
commit 8311fc79a9
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class MongoEventRepository(IEventRepository):
serialized_event = serializer.serialize(event)
self._events_collection.insert_one(serialized_event)
except Exception as err:
raise StorageError(err)
raise StorageError(f"Error saving event: {err}")
def get_events(self) -> Sequence[AbstractAgentEvent]:
try: