summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2021-05-14 10:31:18 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2021-05-14 13:38:22 +0200
commitf535774cf58b43b066a94b544b507b8a939b75c1 (patch)
tree317801dc26d6a4b50eab58e8dcbb701b6f8bddb6 /bin
parentfd167ab6920c1f2e8cbc0a6e57f5073daebf4ae8 (diff)
merge-cve-files: fix variable name in assertion message
And slightly improve the message while at it.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/merge-cve-files2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/merge-cve-files b/bin/merge-cve-files
index dcc7b9c6a2..a26e38ab68 100755
--- a/bin/merge-cve-files
+++ b/bin/merge-cve-files
@@ -14,7 +14,7 @@ from sectracker.parsers import cvelist, writecvelist, PackageAnnotation, FlagAnn
def merge_annotations(annotations, new_annotation):
if not isinstance(new_annotation, PackageAnnotation):
- raise NotImplementedError(f"unsupported annotation of type {type(annotation)}")
+ raise NotImplementedError(f"unsupported annotation of type {new_annotation.type} (line {new_annotation.line})")
annotations = list(annotations)

© 2014-2024 Faster IT GmbH | imprint | privacy policy