From 8311fc79a95a5082a533d9dc3105e23d1fc80b4c Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Wed, 14 Sep 2022 18:43:52 +0000 Subject: [PATCH] Island: Add message to error on save --- monkey/monkey_island/cc/repository/mongo_event_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/repository/mongo_event_repository.py b/monkey/monkey_island/cc/repository/mongo_event_repository.py index f95bfbdd4..dbf080a84 100644 --- a/monkey/monkey_island/cc/repository/mongo_event_repository.py +++ b/monkey/monkey_island/cc/repository/mongo_event_repository.py @@ -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: