Merge pull request #169 from Karneades/fix-aggregation-exeption

Add rule filename to "not implemented" exception output
This commit is contained in:
Florian Roth 2018-09-26 11:50:25 +02:00 committed by GitHub
commit 1c2431f33b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ for sigmafile in get_inputs(cmdargs.inputs, cmdargs.recurse):
if not cmdargs.defer_abort:
sys.exit(error)
except NotImplementedError as e:
print("An unsupported feature is required for this Sigma rule: " + str(e), file=sys.stderr)
print("An unsupported feature is required for this Sigma rule (%s): " % (sigmafile) + str(e), file=sys.stderr)
print("Feel free to contribute for fun and fame, this is open source :) -> https://github.com/Neo23x0/sigma", file=sys.stderr)
if not cmdargs.ignore_backend_errors:
error = 42