Merge pull request #2805 from hipplej/patch-1

Fix a misleading error message
This commit is contained in:
Bert Blommers 2020-03-17 11:11:01 +00:00 committed by GitHub
commit 77f39f6e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,9 @@ class EventsHandler(BaseResponse):
rule = self.events_backend.describe_rule(name)
if not rule:
return self.error("ResourceNotFoundException", "Rule test does not exist.")
return self.error(
"ResourceNotFoundException", "Rule " + name + " does not exist."
)
rule_dict = self._generate_rule_dict(rule)
return json.dumps(rule_dict), self.response_headers