summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-04-28 12:27:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-14 11:41:10 +0100
commite025d1ff02795fc9236b41606e916749f0d5e959 (patch)
tree34c95f2e9f6c3f074448d34863d671eb2bc4372d /meta
parentf86a178fd7036541a45bf31a46bddf634c133802 (diff)
downloadopenembedded-core-e025d1ff02795fc9236b41606e916749f0d5e959.tar.gz
sanity.bbclass: Increased verbosity for connectivity check
The connectivity sanity error doesn't tell you which URL failed to fetch nor how it failed. This provides the URL that failed and why it failed using BBFetchException messages during the connectivity check. [YOCTO #7592] Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-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):
try:
fetcher = bb.fetch2.Fetch(test_uris, data)
fetcher.checkstatus()
- except Exception:
+ except Exception as err:
# Allow the message to be configured so that users can be
# pointed to a support mechanism.
msg = data.getVar('CONNECTIVITY_CHECK_MSG', True) or ""
if len(msg) == 0:
- msg = "Failed to fetch test data from the network. Please ensure your network is configured correctly.\n"
+ msg = "%s. Please ensure your network is configured correctly.\n" % err
retval = msg
return retval