diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-10-17 12:42:26 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-10-17 12:42:26 +0200 |
commit | 8cbac2ac88c155c3ef3547b8a2be69a6a3a04f11 (patch) | |
tree | 6c0f9dbd391b9e09f05c56ee7d451b4ba0c068c4 /contrib | |
parent | ec9dc251d2ca9d86627dfaf79abaa88185cd4b54 (diff) |
cosmetics, exception verbosity
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/nDPIsrvd.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/nDPIsrvd.py b/contrib/nDPIsrvd.py index 7586e4a0e..6bcaf516c 100644 --- a/contrib/nDPIsrvd.py +++ b/contrib/nDPIsrvd.py @@ -175,7 +175,15 @@ class nDPIdEvent: def validateEvent(self, event_id, event_name, list_of_event_tuples): if self.isValid is True: - raise RuntimeError('nDPId event already validated. Multiple Events in one JSON strings are not allowed.') + raise RuntimeError('nDPId event already validated. Multiple Events in one JSON strings are not allowed.\n' \ + '[EVENTS]\n' + 'current: {}\n' \ + 'daemon.: {}\n' \ + 'basic..: {}\n' \ + 'packet.: {}\n' \ + 'flow...: {}\n'.format(event_name, + self.DaemonEventName, self.BasicEventName, \ + self.PacketEventName, self.FlowEventName)) if type(event_id) is not int: raise RuntimeError('Argument is not an Integer/EventID!') |