summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/sanity.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index f8b9fac453..fc8c980515 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -278,12 +278,12 @@ def check_connectivity(d):
278 try: 278 try:
279 fetcher = bb.fetch2.Fetch(test_uris, data) 279 fetcher = bb.fetch2.Fetch(test_uris, data)
280 fetcher.checkstatus() 280 fetcher.checkstatus()
281 except Exception: 281 except Exception as err:
282 # Allow the message to be configured so that users can be 282 # Allow the message to be configured so that users can be
283 # pointed to a support mechanism. 283 # pointed to a support mechanism.
284 msg = data.getVar('CONNECTIVITY_CHECK_MSG', True) or "" 284 msg = data.getVar('CONNECTIVITY_CHECK_MSG', True) or ""
285 if len(msg) == 0: 285 if len(msg) == 0:
286 msg = "Failed to fetch test data from the network. Please ensure your network is configured correctly.\n" 286 msg = "%s. Please ensure your network is configured correctly.\n" % err
287 retval = msg 287 retval = msg
288 288
289 return retval 289 return retval