Skip to content

Commit

Permalink
Improve notification plugin error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
etingof committed Jan 10, 2019
1 parent f7b04ba commit c8478a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Revision 0.4.6, released XX-01-2019
-----------------------------------

No changes yet
- Improve error reporting in `notification` variation module

Revision 0.4.5, released 30-12-2018
-----------------------------------
Expand Down
4 changes: 3 additions & 1 deletion variation/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def variate(oid, tag, value, **context):
)
moduleContext[snmpEngine][context['transportDomain']] = 1
else:
raise error.SnmpsimError('variation module not given snmpEngine')
raise error.SnmpsimError(
'Variation module is not given snmpEngine. '
'Make sure you are not running in --v2c-arch mode')

if not context['nextFlag'] and not context['exactMatch']:
return context['origOid'], tag, context['errorStatus']
Expand Down

0 comments on commit c8478a7

Please sign in to comment.