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 <[email protected]>
---
 meta/lib/oe/spdx30_tasks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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(
-- 
2.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#202270): 
https://lists.openembedded.org/g/openembedded-core/message/202270
Mute This Topic: https://lists.openembedded.org/mt/107439411/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to