From d1d7080019dc8118754e1992853986bf3fd964b7 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Fri, 14 May 2021 10:31:18 +0200 Subject: merge-cve-files: fix variable name in assertion message And slightly improve the message while at it. --- bin/merge-cve-files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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) -- cgit v1.2.3