Message ID | 20240719175237.867713-1-dmitry.baryshkov@linaro.org |
---|---|
State | Accepted, archived |
Commit | 45f64e69a63b544d560e2e5eb05a6e1f058c4da1 |
Headers | show |
Series | lib/spdx30_tasks: improve error message | expand |
diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 59fd87507444..7baa6be70e3d 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(
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 <dmitry.baryshkov@linaro.org> --- meta/lib/oe/spdx30_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)