Skip to content

Commit

Permalink
Improve error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
porridge committed Apr 8, 2024
1 parent 254dbce commit 06b9ea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bambam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 06b9ea8

Please sign in to comment.