From f23a6c8fa40982230d375874ac5e99e1c9416c0e Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 23 Sep 2022 13:35:49 +0530 Subject: [PATCH] Island: Add message to ValueError in AgentSignals resource --- monkey/monkey_island/cc/resources/agent_signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/resources/agent_signals.py b/monkey/monkey_island/cc/resources/agent_signals.py index e04a9ea44..e55a489d4 100644 --- a/monkey/monkey_island/cc/resources/agent_signals.py +++ b/monkey/monkey_island/cc/resources/agent_signals.py @@ -25,7 +25,7 @@ class AgentSignals(AbstractResource): signal = Signals(**request.json) if signal.terminate is None: - raise ValueError + raise ValueError("Terminate signal's timestamp is empty") self._island_event_queue.publish(IslandEventTopic.TERMINATE_AGENTS, signal=signal) except (JSONDecodeError, TypeError, ValueError) as err: return {"error": err}, HTTPStatus.BAD_REQUEST