summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-01-13 17:01:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-15 10:06:21 +0000
commitdcf6b641fe3a9a1525290da788648aab3204d48c (patch)
tree7e8b9a93750830914cd1ee62d5ae509c71223bd0 /bitbake/lib/bb/build.py
parent98a610b3db682744ea32bb042a750d2d8b164892 (diff)
downloadpoky-dcf6b641fe3a9a1525290da788648aab3204d48c.tar.gz
bitbake/fetch2: improve error formatting for fetcher errors
* The "name" argument to FuncFailed is rarely used as a name in actual usage within bitbake, so don't treat it as one in the output. * Don't print URL for FetchError if it was not specified (i.e. don't output "Fetcher failure for URL 'None'") * Don't include URL in "unable to fetch from any source" message since we supply it to FetchError and it will be printed anyway. * Don't include URL in "checksum failed" message for the same reason (Bitbake rev: 86811bd85e2e453ee92a05fe60160d9b49ac69e8) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r--bitbake/lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index aabc1b6e1d..30e5497d1d 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -53,7 +53,7 @@ class FuncFailed(Exception):
53 self.logfile = logfile 53 self.logfile = logfile
54 self.name = name 54 self.name = name
55 if name: 55 if name:
56 self.msg = "Function '%s' failed" % name 56 self.msg = 'Function failed: %s' % name
57 else: 57 else:
58 self.msg = "Function failed" 58 self.msg = "Function failed"
59 59