public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] sanity: Emit the error message if CONNECTIVITY_CHECK_MSG is set
@ 2025-11-03 15:42 mac
  0 siblings, 0 replies; only message in thread
From: mac @ 2025-11-03 15:42 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mike Crowe

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 --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
-- 
2.39.5



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-03 15:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-03 15:42 [PATCH] sanity: Emit the error message if CONNECTIVITY_CHECK_MSG is set mac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox