From: Mike Crowe Date: Mon, 3 Nov 2025 15:42:34 +0000 (+0000) Subject: sanity: Emit the error message if CONNECTIVITY_CHECK_MSG is set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f69a507a241faf75e8468561cc1341bd4965107;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git sanity: Emit the error message if CONNECTIVITY_CHECK_MSG is set 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 Signed-off-by: Mathieu Dubois-Briand --- diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass index 6934e071a3d..c89ff2c51fc 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