From b49dfcf79da3a348ddb55e6b44c960c4e73f30db Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 27 Jun 2022 09:30:33 -0400 Subject: [PATCH] Island: Change error -> message in AgentConfiguration resource --- monkey/monkey_island/cc/resources/agent_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/resources/agent_configuration.py b/monkey/monkey_island/cc/resources/agent_configuration.py index 1bf311564..4715680a0 100644 --- a/monkey/monkey_island/cc/resources/agent_configuration.py +++ b/monkey/monkey_island/cc/resources/agent_configuration.py @@ -30,6 +30,6 @@ class AgentConfiguration(AbstractResource): return make_response({}, 200) except (InvalidConfigurationError, json.JSONDecodeError) as err: return make_response( - {"message": f"Invalid configuration supplied: {err}"}, + {"error": f"Invalid configuration supplied: {err}"}, 400, )