Skip to contentSkip to conversation

sanity: Emit the error message if CONNECTIVITY_CHECK_MSG is set

PATCH New [email protected] 1 participant 1 message Nov 3, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sanity: Emit the error message if CONNECTIVITY_CHECK_MSG is set

From: Mike Crowe <[email protected]>

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.

---
 meta/classes-global/sanity.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes-global/sanity.bbclass +2 -0
index 6934e071a3..c89ff2c51f 100644
@@ -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
Signature · 1 line
2.39.5