]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
sanity: Emit the error message if CONNECTIVITY_CHECK_MSG is set
authorMike Crowe <mac@mcrowe.com>
Mon, 3 Nov 2025 15:42:34 +0000 (15:42 +0000)
committerMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Tue, 4 Nov 2025 09:42:40 +0000 (10:42 +0100)
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>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/classes-global/sanity.bbclass

index bdd4d1474ef650895a1b8921a26ac3dde712d086..9fe17dd6700bc706f58b8b7f07ef3871bd4d5d0d 100644 (file)
@@ -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