From: Dmitry Baryshkov Date: Fri, 19 Jul 2024 17:52:37 +0000 (+0300) Subject: lib/spdx30_tasks: improve error message X-Git-Tag: uninative-4.6~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45f64e69a63b544d560e2e5eb05a6e1f058c4da1;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git lib/spdx30_tasks: improve error message Improve 'unknown status' error message by including the CVE id and by quoting status field. Otherwise it might be troublesome to understand messages like 'do_create_spdx: Unknown CVE status ' (the status was empty). Signed-off-by: Dmitry Baryshkov Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 59fd8750744..7baa6be70e3 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py @@ -688,7 +688,7 @@ def create_spdx(d): else: bb.fatal(f"Unknown detail '{detail}' for ignored {cve}") else: - bb.fatal(f"Unknown CVE status {status}") + bb.fatal(f"Unknown {cve} status '{status}'") if all_cves: pkg_objset.new_relationship(