Island: Add message to error on save
This commit is contained in:
parent
5f44204583
commit
8311fc79a9
|
@ -24,7 +24,7 @@ class MongoEventRepository(IEventRepository):
|
||||||
serialized_event = serializer.serialize(event)
|
serialized_event = serializer.serialize(event)
|
||||||
self._events_collection.insert_one(serialized_event)
|
self._events_collection.insert_one(serialized_event)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
raise StorageError(err)
|
raise StorageError(f"Error saving event: {err}")
|
||||||
|
|
||||||
def get_events(self) -> Sequence[AbstractAgentEvent]:
|
def get_events(self) -> Sequence[AbstractAgentEvent]:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue