diff mbox series

sanity: Emit the error message if CONNECTIVITY_CHECK_MSG is set

Message ID 20251103154234.3072747-1-mac@mcrowe.com
State New
Headers show
Series sanity: Emit the error message if CONNECTIVITY_CHECK_MSG is set | expand

Commit Message

mac@mcrowe.com Nov. 3, 2025, 3:42 p.m. UTC
From: Mike Crowe <mac@mcrowe.com>

Users may still be interested in the actual error message even if there
is a custom message for failure of the connectivity check since the
cause may be intermittent.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
---
 meta/classes-global/sanity.bbclass | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass
index 6934e071a3..c89ff2c51f 100644
--- a/meta/classes-global/sanity.bbclass
+++ b/meta/classes-global/sanity.bbclass
@@ -368,6 +368,8 @@  def check_connectivity(d):
                 msg += "    CONNECTIVITY_CHECK_URIS = \"https://www.example.com/\""
                 msg += "    You could also set BB_NO_NETWORK = \"1\" to disable network\n"
                 msg += "    access if all required sources are on local disk.\n"
+            else:
+                msg = "%s.\n%s" % (err, msg)
             retval = msg
 
     return retval