From 06b9ea849194737fd364caf03077d58257b5f0c5 Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Mon, 8 Apr 2024 17:51:11 +0200 Subject: [PATCH] Improve error message. --- bambam.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bambam.py b/bambam.py index 90efa6f..4083122 100755 --- a/bambam.py +++ b/bambam.py @@ -697,7 +697,8 @@ def map(self, event): if not self._match_list(event, check_list): continue return step['policy'], step.get('args', None) - raise Exception('ran out of steps in spec %s' % self._spec) + raise Exception('event %s matched no step in spec %s' % ( + event, self._spec)) @classmethod def _match_list(cls, event, check_list):